11 #include "vtdata/vtDIB.h"
15 #if WIN32 && (wxVERSION_NUMBER < 2900)
16 #define USE_DIBSECTIONS 1
31 bool Allocate(
int iXSize,
int iYSize,
int iDepth = 24);
32 bool IsAllocated()
const;
33 void SetPixel24(
int x,
int y, uchar r, uchar g, uchar b);
34 void SetPixel24(
int x,
int y,
const RGBi &rgb)
36 SetPixel24(x, y, rgb.r, rgb.g, rgb.b);
38 void GetPixel24(
int x,
int y,
RGBi &rgb)
const;
40 void SetPixel32(
int x,
int y,
const RGBAi &rgba);
41 void GetPixel32(
int x,
int y,
RGBAi &rgba)
const;
43 uchar GetPixel8(
int x,
int y)
const;
44 void SetPixel8(
int x,
int y, uchar color);
46 uint GetWidth()
const;
47 uint GetHeight()
const;
48 uint GetDepth()
const;
50 void ContentsChanged();
52 bool ReadPNGFromMemory(uchar *buf,
int len);
53 bool WriteJPEG(
const char *fname,
int quality);
58 bool Allocate8(
int iXSize,
int iYSize);
59 bool Allocate24(
int iXSize,
int iYSize);