CBitmap Class Reference
Encapsulates various platform depended kinds of bitmaps.
More...
List of all members.
Detailed Description
Encapsulates various platform depended kinds of bitmaps.
In Version 4.0 CBitmap was simplified. Previous versions supported drawing a color transparent of the bitmap. Since CBitmap supports alpha drawing of bitmaps since some time, it's now the only way of drawing a bitmap with some parts transparent.
File format support is handled in a platform dependent way. On Windows GDI+ is used to import images. On Mac OS X CoreGraphics is used to import them. For cross platform compatibility it is recommended to use PNG files.
You load a bitmap via a CResourceDescription which can hold a string or a number. If you use names, you need to use the real filename with extension. Then it gets automaticly loaded on Mac OS X out of the Resources folder of the vst bundle. On Windows you also specify the resource in the .rc file with the real filename.
1001 PNG DISCARDABLE "bmp01001.png"
RealFileName.png PNG DISCARDABLE "RealFileName.png"
Constructor & Destructor Documentation
Create a pixmap from a resource identifier.
Create a pixmap with a given size.
| CBitmap |
( |
IPlatformBitmap * |
platformBitmap |
) |
|
Member Function Documentation
| virtual void forget |
( |
|
) |
[inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
get the height of the image
| virtual int32_t getNbReference |
( |
|
) |
const [inline, virtual, inherited] |
| IPlatformBitmap* getPlatformBitmap |
( |
|
) |
const [inline] |
get the width of the image
| bool isLoaded |
( |
|
) |
const [inline] |
| virtual void remember |
( |
|
) |
[inline, virtual, inherited] |
| void setPlatformBitmap |
( |
IPlatformBitmap * |
bitmap |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files: