Conv32to24 Class Reference

Inheritance diagram for Conv32to24:

DIBConvert List of all members.

Public Member Functions

 Conv32to24 (UINT32)
 Constructor.
 ~Conv32to24 ()
BOOL Convert (LPBYTE Input, LPBYTE Output, UINT32 Height, BOOL FirstStrip)

Private Attributes

BITMAPINFOHEADER SourceHeader
BITMAPINFOHEADER DestHeader

Detailed Description

Definition at line 137 of file dibconv.cpp.


Constructor & Destructor Documentation

Conv32to24::Conv32to24 UINT32  Width  ) 
 

Constructor.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>?
Date:
29/06/96

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 }

Conv32to24::~Conv32to24  ) 
 

Definition at line 454 of file dibconv.cpp.

00455 {
00456 }


Member Function Documentation

BOOL Conv32to24::Convert LPBYTE  Input,
LPBYTE  Output,
UINT32  Height,
BOOL  FirstStrip
[virtual]
 

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 }


Member Data Documentation

BITMAPINFOHEADER Conv32to24::DestHeader [private]
 

Definition at line 147 of file dibconv.cpp.

BITMAPINFOHEADER Conv32to24::SourceHeader [private]
 

Definition at line 146 of file dibconv.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:53:10 2007 for Camelot by  doxygen 1.4.4