54 void ReplaceColor(
unsigned char oldColor,
unsigned char newColor);
73 void BitBlt(
HDC hDest,
int nXDest,
int nYDest,
int nWidth,
int nHeight,
int xSrc,
int ySrc);
74 void BitBlt(
int nXDest,
int nYDest,
int nWidth,
int nHeight,
CDIB& dibSrc,
int nSrcX,
int nSrcY,BYTE *colors=
NULL);
75 void StretchBlt(
HDC hDest,
int nXDest,
int nYDest,
int nDWidth,
int nDHeight,
int xSrc,
int ySrc,
int nSWidth,
int nSHeight);
76 void StretchBlt(
int nXDest,
int nYDest,
int nDWidth,
int nDHeight,
CDIB& dibSrc,
int xSrc,
int ySrc,
int nSWidth,
int nSHeight);
77 void ExpandBlt(
int nXDest,
int nYDest,
int xRatio,
int yRatio,
CDIB& dibSrc,
int xSrc,
int ySrc,
int nSWidth,
int nSHeight);
90 static unsigned int Distance( RGBQUAD& rgb1, RGBQUAD& rgb2 );
101 void Expand(
int nXDest,
int nYDest,
int xRatio,
int yRatio,
CDIB &dibSrc,
int xSrc,
int ySrc,
int nSWidth,
int nSHeight );
BOOL OpenBMP(CString &csFileName)
void SetPalette(unsigned char *palette)
static unsigned int Distance(RGBQUAD &rgb1, RGBQUAD &rgb2)
int int int int int int ySrc
CONST PIXELFORMATDESCRIPTOR UINT
COLORREF GetPixel(int x, int y)
typedef HANDLE(WINAPI *PFNWGLCREATEBUFFERREGIONARBPROC)(HDC hDC
BOOL SwitchFromFour(CDIB &dib)
void StretchBlt(HDC hDest, int nXDest, int nYDest, int nDWidth, int nDHeight, int xSrc, int ySrc, int nSWidth, int nSHeight)
void UseGamma(float fg, BOOL bUse=TRUE)
BOOL SaveTIFF(CString &csFileName)
HANDLE GetDIBits(int nStartX=-1, int nStartY=-1, int nCx=-1, int nCy=-1)
GLuint GLuint GLsizei GLenum type
unsigned char * GetLinePtr(int line)
int ClosestColor(RGBQUAD *pRgb)
void SetPixel8(int x, int y, unsigned char color)
GLsizei GLsizei GLcharARB * source
BOOL SwitchFromOne(CDIB &dib)
BOOL OpenDIB(CString &fileName)
void ReplaceColor(unsigned char oldColor, unsigned char newColor)
BOOL SwitchPalette(CDIB &dib)
void Expand(int nXDest, int nYDest, int xRatio, int yRatio, CDIB &dibSrc, int xSrc, int ySrc, int nSWidth, int nSHeight)
BOOL SaveBMP(CString &csFileName)
void CopyLine(int source, int dest)
COLORREF PaletteColor(int index)
void BitBlt(HDC hDest, int nXDest, int nYDest, int nWidth, int nHeight, int xSrc, int ySrc)
void SetPixel(int x, int y, COLORREF color)
typedef HDC(WINAPI *PFNWGLGETCURRENTREADDCARBPROC)(void)
int EnumColors(BYTE *colors)
BOOL SaveGIF(CString &csFileName)
GLenum GLsizei GLsizei height
void ExpandBlt(int nXDest, int nYDest, int xRatio, int yRatio, CDIB &dibSrc, int xSrc, int ySrc, int nSWidth, int nSHeight)
void InitDIB(COLORREF color)
CDIB & operator=(CDIB &dib)
BOOL SwitchFrom24(CDIB &dib)
BOOL OpenTIFF(CString &csFileName)
BOOL Create(int width, int height, int bits=24)
LPBITMAPINFO GetBitmapInfo()
CBitmap * GetBitmap(CDC &dc)
CBitmap * GetTempBitmap(CDC &dc)
CDIB(HANDLE hDib=NULL, int nBits=8)
BOOL OpenGIF(CString &csFileName)
BOOL CreateFromHandle(HANDLE hDib, int nBits)
BOOL SaveDIB(CString &fileName, BitmapType type)