Inheritance diagram for Conv32to24:
Public Member Functions | |
Conv32to24 (UINT32) | |
Constructor. | |
~Conv32to24 () | |
BOOL | Convert (LPBYTE Input, LPBYTE Output, UINT32 Height, BOOL FirstStrip) |
Private Attributes | |
BITMAPINFOHEADER | SourceHeader |
BITMAPINFOHEADER | DestHeader |
Definition at line 137 of file dibconv.cpp.
|
Constructor.
Definition at line 441 of file dibconv.cpp. 00442 { 00443 SourceHeader.biPlanes = 1; 00444 SourceHeader.biBitCount = 32; 00445 SourceHeader.biWidth = Width; 00446 SourceHeader.biClrUsed = 0; 00447 00448 DestHeader.biPlanes = 1; 00449 DestHeader.biBitCount = 24; 00450 DestHeader.biWidth = Width; 00451 DestHeader.biClrUsed = 0; 00452 }
|
|
Definition at line 454 of file dibconv.cpp.
|
|
Implements DIBConvert. Definition at line 458 of file dibconv.cpp. 00459 { 00460 SourceHeader.biHeight = Height; 00461 00462 DestHeader.biHeight = Height; 00463 00464 DWORD DitherWord = 8; // Convert to 888 format 00465 00466 GDrawContext *GDC = GetConvertContext(); 00467 const BOOL res = GDC->ConvertBitmap( &SourceHeader, Input, &DestHeader, Output, DitherWord); 00468 if (!res) 00469 TRACE( _T("GColour_ConvertBitmap did error %x\n"), GetLastError() ); 00470 00471 return TRUE; 00472 }
|
|
Definition at line 147 of file dibconv.cpp. |
|
Definition at line 146 of file dibconv.cpp. |