#include </home/zeitlin/src/wx/github/interface/wx/graphics.h>
Represents a bitmap.
The objects of this class are not created directly but only via wxGraphicsContext or wxGraphicsRenderer CreateBitmap(), CreateBitmapFromImage() or CreateSubBitmap() methods. They can subsequently be used with wxGraphicsContext::DrawBitmap(). The only other operation is testing for the bitmap validity which can be performed using IsNull() method inherited from the base class.
Public Member Functions | |
wxGraphicsBitmap () | |
Default constructor creates an invalid bitmap. | |
wxImage | ConvertToImage () const |
Return the contents of this bitmap as wxImage. | |
void * | GetNativeBitmap () const |
Return the pointer to the native bitmap data. |
wxGraphicsBitmap::wxGraphicsBitmap | ( | ) | [inline] |
Default constructor creates an invalid bitmap.
wxImage wxGraphicsBitmap::ConvertToImage | ( | ) | const |
Return the contents of this bitmap as wxImage.
Using this method is more efficient than converting wxGraphicsBitmap to wxBitmap first and then to wxImage and can be useful if, for example, you want to save wxGraphicsBitmap as a disk file in a format not directly supported by wxBitmap.
Invalid image is returned if the bitmap is invalid.
void* wxGraphicsBitmap::GetNativeBitmap | ( | ) | const |
Return the pointer to the native bitmap data.
(CGImageRef for Core Graphics, cairo_surface_t for Cairo, Bitmap* for GDI+.)