Graphics.Win32.GDI.Bitmap

Win32-2.12.0.1: A binding to Windows Win32 API.

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 | Haskell2010

Graphics.Win32.GDI.Bitmap

Description

A collection of FFI declarations for interfacing with Win32.

# Documentation

type RasterOp3 = Word32 Source #

type RasterOp4 = Word32 Source #

sRCCOPY :: RasterOp3 Source #

sRCPAINT :: RasterOp3 Source #

sRCAND :: RasterOp3 Source #

sRCINVERT :: RasterOp3 Source #

sRCERASE :: RasterOp3 Source #

nOTSRCCOPY :: RasterOp3 Source #

nOTSRCERASE :: RasterOp3 Source #

mERGECOPY :: RasterOp3 Source #

mERGEPAINT :: RasterOp3 Source #

pATCOPY :: RasterOp3 Source #

pATPAINT :: RasterOp3 Source #

pATINVERT :: RasterOp3 Source #

dSTINVERT :: RasterOp3 Source #

bLACKNESS :: RasterOp3 Source #

wHITENESS :: RasterOp3 Source #

mAKEROP4 :: RasterOp3 -> RasterOp3 -> RasterOp4 Source #

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

type LPBITMAP = Ptr BITMAP Source #

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

deleteBitmap :: HBITMAP -> IO () Source #

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

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

createBitmapIndirect :: LPBITMAP -> IO HBITMAP Source #

createDIBPatternBrushPt :: LPVOID -> ColorFormat -> IO HBRUSH Source #

getBitmapDimensionEx :: HBITMAP -> IO SIZE Source #

setBitmapDimensionEx :: HBITMAP -> SIZE -> IO SIZE Source #

getBitmapInfo :: HBITMAP -> IO BITMAP Source #

type BitmapCompression = DWORD Source #

bI_RGB :: BitmapCompression Source #

bI_RLE8 :: BitmapCompression Source #

bI_RLE4 :: BitmapCompression Source #

bI_BITFIELDS :: BitmapCompression Source #

type ColorFormat = DWORD Source #

dIB_PAL_COLORS :: ColorFormat Source #

dIB_RGB_COLORS :: ColorFormat Source #

type LPBITMAPINFO = Ptr () Source #

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

type LPBITMAPINFOHEADER = Ptr BITMAPINFOHEADER Source #

getBITMAPINFOHEADER_ :: LPBITMAPINFOHEADER -> IO BITMAPINFOHEADER Source #

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

type LPBITMAPFILEHEADER = Ptr BITMAPFILEHEADER Source #

getBITMAPFILEHEADER :: LPBITMAPFILEHEADER -> IO BITMAPFILEHEADER Source #

sizeofBITMAP :: Word32 Source #

sizeofBITMAPINFO :: Word32 Source #

sizeofBITMAPINFOHEADER :: Word32 Source #

sizeofBITMAPFILEHEADER :: Word32 Source #

sizeofLPBITMAPFILEHEADER :: Word32 Source #

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

cBM_INIT :: DWORD Source #

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

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

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