Windows2003-3790/windows/advcore/gdiplus/test/functest/cbitmap.h
2020-09-30 16:53:55 +02:00

39 lines
1.0 KiB
C++

/******************************Module*Header*******************************\
* Module Name: CBitmap.h
*
* This file contains the code to support the functionality test harness
* for GDI+. This includes menu options and calling the appropriate
* functions for execution.
*
* Created: 08-08-2000 - asecchia
*
* Copyright (c) 2000 Microsoft Corporation
*
\**************************************************************************/
#ifndef __CBITMAP_H
#define __CBITMAP_H
#include "COutput.h"
class CBitmap : public COutput
{
public:
CBitmap(BOOL bRegression, PixelFormat pixelFormat);
virtual ~CBitmap();
Graphics *PreDraw(int &nOffsetX,int &nOffsetY); // Set up graphics at the given X,Y offset
void PostDraw(RECT rTestArea); // Finish off graphics at rTestArea
BOOL WriteBitmap(char *szTitle, HBITMAP hbitmap, INT width, INT height);
void InitPalettes(); // Initialize palettes
Bitmap *m_bmp;
PixelFormat m_PixelFormat; // # of bits to use
};
#endif