
Public Member Functions | |
| vtDIB () | |
| vtDIB (void *pDIB) | |
| bool | Create (int width, int height, int bitdepth, bool create_palette=false) |
| bool | Create24From8bit (const vtDIB &from) |
| bool | Read (const char *fname, bool progress_callback(int)=NULL) |
| bool | ReadBMP (const char *fname, bool progress_callback(int)=NULL) |
| bool | ReadJPEG (const char *fname, bool progress_callback(int)=NULL) |
| bool | ReadPNG (const char *fname, bool progress_callback(int)=NULL) |
| bool | WriteBMP (const char *fname) |
| bool | WriteJPEG (const char *fname, int quality, bool progress_callback(int)=NULL) |
| bool | WritePNG (const char *fname) |
| bool | WriteTIF (const char *fname, const DRECT *area=NULL, const vtProjection *proj=NULL, bool progress_callback(int)=NULL) |
| unsigned int | GetPixel24 (int x, int y) const |
| void | GetPixel24 (int x, int y, RGBi &rgb) const |
| void | GetPixel24From8bit (int x, int y, RGBi &rgb) const |
| void | SetPixel24 (int x, int y, dword color) |
| void | SetPixel24 (int x, int y, const RGBi &rgb) |
| void | GetPixel32 (int x, int y, RGBAi &rgba) const |
| void | SetPixel32 (int x, int y, const RGBAi &rgba) |
| unsigned char | GetPixel8 (int x, int y) const |
| void | SetPixel8 (int x, int y, unsigned char color) |
| bool | GetPixel1 (int x, int y) const |
| void | SetPixel1 (int x, int y, bool color) |
| void | SetColor (const RGBi &rgb) |
| void | Invert () |
| void | Blit (vtDIB &target, int x, int y) |
| unsigned int | GetWidth () const |
| unsigned int | GetHeight () const |
| unsigned int | GetDepth () const |
| void * | GetHandle () const |
| BITMAPINFOHEADER * | GetDIBHeader () const |
| void * | GetDIBData () const |
| void | LeaveInternalDIB (bool bLeaveIt) |
Public Attributes | |
| bool | m_bLoadedSuccessfully |
|
|
Create a new empty DIB wrapper. |
|
||||||||||||||||
|
Copy from this bitmap to another. Currently, this is implemented with a slow, completely unoptimized approach of one pixel at a time. |
|
||||||||||||||||||||
|
Create a new DIB in memory. |
|
||||||||||||
|
Get a single bit from a 1-bit bitmap. |
|
||||||||||||||||
|
Get a 24-bit RGB value from a 24-bit bitmap, place it in the rgb parameter. Implements vtBitmapBase. |
|
||||||||||||
|
Get a 24-bit RGB value from a 24-bit bitmap.
|
|
||||||||||||
|
Get a single byte from an 8-bit bitmap. Implements vtBitmapBase. |
|
|
Invert the bitmap colors. |
|
|
Pass true to indicate that the DIB should not free its internal memory when the object is deleted. |
|
||||||||||||
|
Read a image file into the DIB. This method will check to see if the file is a BMP or JPEG and call the appropriate reader. |
|
||||||||||||
|
Read a MSWindows-style .bmp file into the DIB. |
|
||||||||||||
|
Read a JPEG file. A DIB of the necessary size and depth is allocated. |
|
||||||||||||
|
Read a PNG file. A DIB of the necessary size and depth is allocated.
|
|
|
Sets the entire bitmap to a single color. |
|
||||||||||||||||
|
Set a single bit in a 1-bit bitmap. |
|
||||||||||||||||
|
Set a 24-bit RGB value in a 24-bit bitmap. |
|
||||||||||||||||
|
Set a single byte in an 8-bit bitmap. Implements vtBitmapBase. |
|
|
Write a MSWindows-style .bmp file from the DIB. |
|
||||||||||||||||
|
Write a JPEG file.
|
|
|
Write a PNG file.
|
|
||||||||||||||||||||
|
Write a TIFF file. If extents and projection are support, a GeoTIFF file will be written.
|
1.4.5