Conv32to32 Class Reference

Inheritance diagram for Conv32to32:

DIBConvert List of all members.

Public Member Functions

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

Private Attributes

BITMAPINFOHEADER SourceHeader
BITMAPINFOHEADER DestHeader

Detailed Description

Definition at line 123 of file dibconv.cpp.


Constructor & Destructor Documentation

Conv32to32::Conv32to32 UINT32  Width  ) 
 

Constructor.

Author:
Mark_Howitt (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/7/99

Definition at line 398 of file dibconv.cpp.

00399 {
00400     SourceHeader.biPlanes = 1;
00401     SourceHeader.biBitCount = 32;
00402     SourceHeader.biWidth = Width;
00403     SourceHeader.biClrUsed = 0;
00404 
00405     DestHeader.biPlanes = 1;
00406     DestHeader.biBitCount = 32;
00407     DestHeader.biWidth = Width;
00408     DestHeader.biClrUsed = 0;
00409 }

Conv32to32::~Conv32to32  ) 
 

Definition at line 411 of file dibconv.cpp.

00412 {
00413 }


Member Function Documentation

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

Implements DIBConvert.

Definition at line 415 of file dibconv.cpp.

00416 {
00417     SourceHeader.biHeight = Height;
00418 
00419     DestHeader.biHeight = Height;
00420 
00421     DWORD DitherWord = 0;
00422 
00423     GDrawContext *GDC = GetConvertContext();
00424     const BOOL res = GDC->ConvertBitmap( &SourceHeader, Input, &DestHeader, Output, DitherWord);
00425     if (!res)
00426         TRACE( _T("GColour_ConvertBitmap did error %x\n"), GetLastError() );
00427 
00428     return TRUE;
00429 }


Member Data Documentation

BITMAPINFOHEADER Conv32to32::DestHeader [private]
 

Definition at line 133 of file dibconv.cpp.

BITMAPINFOHEADER Conv32to32::SourceHeader [private]
 

Definition at line 132 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