Graphics.Win32.GDI.Bitmap

Win32-2.3.1.0: A binding to part of the Win32 library

Copyright | (c) Alastair Reid, 1997-2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Graphics.Win32.GDI.Bitmap

Description

A collection of FFI declarations for interfacing with Win32.

# Documentation

type RasterOp3 = Word32

type RasterOp4 = Word32

sRCCOPY :: RasterOp3

sRCPAINT :: RasterOp3

sRCAND :: RasterOp3

sRCINVERT :: RasterOp3

sRCERASE :: RasterOp3

nOTSRCCOPY :: RasterOp3

nOTSRCERASE :: RasterOp3

mERGECOPY :: RasterOp3

mERGEPAINT :: RasterOp3

pATCOPY :: RasterOp3

pATPAINT :: RasterOp3

pATINVERT :: RasterOp3

dSTINVERT :: RasterOp3

bLACKNESS :: RasterOp3

wHITENESS :: RasterOp3

mAKEROP4 :: RasterOp3 -> RasterOp3 -> RasterOp4

type BITMAP = (INT, INT, INT, INT, WORD, WORD, LPVOID)

type LPBITMAP = Ptr BITMAP

setBITMAP :: LPBITMAP -> BITMAP -> IO ()

deleteBitmap :: HBITMAP -> IO ()

createCompatibleBitmap :: HDC -> Int32 -> Int32 -> IO HBITMAP

createBitmap :: INT -> INT -> UINT -> UINT -> Maybe LPVOID -> IO HBITMAP

createBitmapIndirect :: LPBITMAP -> IO HBITMAP

createDIBPatternBrushPt :: LPVOID -> ColorFormat -> IO HBRUSH

getBitmapDimensionEx :: HBITMAP -> IO SIZE

setBitmapDimensionEx :: HBITMAP -> SIZE -> IO SIZE

getBitmapInfo :: HBITMAP -> IO BITMAP

type BitmapCompression = DWORD

bI_RGB :: BitmapCompression

bI_RLE8 :: BitmapCompression

bI_RLE4 :: BitmapCompression

bI_BITFIELDS :: BitmapCompression

type ColorFormat = DWORD

dIB_PAL_COLORS :: ColorFormat

dIB_RGB_COLORS :: ColorFormat

type LPBITMAPINFO = Ptr ()

type BITMAPINFOHEADER = (DWORD, LONG, LONG, WORD, WORD, BitmapCompression, DWORD, LONG, LONG, Maybe DWORD, Maybe DWORD)

type LPBITMAPINFOHEADER = Ptr BITMAPINFOHEADER

getBITMAPINFOHEADER_ :: LPBITMAPINFOHEADER -> IO BITMAPINFOHEADER

type BITMAPFILEHEADER = (WORD, DWORD, WORD, WORD, DWORD)

type LPBITMAPFILEHEADER = Ptr BITMAPFILEHEADER

getBITMAPFILEHEADER :: LPBITMAPFILEHEADER -> IO BITMAPFILEHEADER

sizeofBITMAP :: Word32

sizeofBITMAPINFO :: Word32

sizeofBITMAPINFOHEADER :: Word32

sizeofBITMAPFILEHEADER :: Word32

sizeofLPBITMAPFILEHEADER :: Word32

createBMPFile :: String -> HBITMAP -> HDC -> IO ()

cBM_INIT :: DWORD

getDIBits :: HDC -> HBITMAP -> INT -> INT -> Maybe LPVOID -> LPBITMAPINFO -> ColorFormat -> IO INT

setDIBits :: HDC -> HBITMAP -> INT -> INT -> LPVOID -> LPBITMAPINFO -> ColorFormat -> IO INT

createDIBitmap :: HDC -> LPBITMAPINFOHEADER -> DWORD -> LPVOID -> LPBITMAPINFO -> ColorFormat -> IO HBITMAP