#include <fastgl.h>
Inheritance diagram for fgl::FGBitmap:


alpha.cpp, bitmap.cpp, fgcolor.cpp, fgv.cpp, gif.cpp, and hello.cpp.
Public Types | |
| enum | ReturnValues { IMAGE_OK, IMAGE_FILE_NOT_FOUND, IMAGE_UNKNOWN_FORMAT, IMAGE_UNSUPPORTED_FORMAT, IMAGE_FILE_WRITE_ERROR } |
| enum | ImageFormats { IMAGE_AUTO, IMAGE_BMP, IMAGE_GIF, IMAGE_TGA, IMAGE_PNG, IMAGE_JPG, IMAGE_TIF, IMAGE_PCX, IMAGE_UNKNOWN, IMAGE_LAST } |
Public Member Functions | |
| FGBitmap () | |
| FGBitmap (const char *name) | |
| FGBitmap (FGDrawBuffer *) | |
| FGBitmap (int, int, FGPixel=CBLACK) | |
| FGBitmap (FGBitmap &old) | |
| ReturnValues | BitmapSave (const char *, bool convert=false) |
| ReturnValues | JpegSave (const char *name) |
| ReturnValues | PngSave (const char *name) |
| ReturnValues | LoadImage (const char *name, int imagefmt=IMAGE_AUTO) |
| ReturnValues | SaveImage (const char *name, int imagefmt) |
|
|
return values from LoadImage
|
|
|
Creates an empty bitmap image object. You must use LoadImage() to load from file. |
|
|
Creates "in memory" object from the bitmap file with name. The file must be one from supported and enabled image formats. If an operation is OK, then data member type is != BMP_NONE, else file doesn't exist or isn't a valid image file.
|
|
|
Create a BITMAP object in memory as exact copy of the FGDrawBuffer object. This one has dimensions and contents the same as source buffer. The image has been copied from, that you can't expect that any next changes are appears in it. The application of one are when you want save the contents of a window to the BMP file by example. |
|
||||||||||||||||
|
Create a BITMAP object in memory with specified size and color layout. |
|
||||||||||||
|
|
1.4.0