#include <vstgui.h>
class CBitmap;
The pixmap class encapsulates various platform depended kinds of bitmaps. The pixmap objects are used to defined the graphic of a control object (such as a button, slider, ...).
CBitmap |
1.0 |
Create a pixmap from a resource identifier.
long MyEditor::open (void *ptr)
{
...
myPixmap = new CBitmap (kMyPixmapID);
...
}
CBitmap |
1.0 |
Create a pixmap with a given size.
frame |
- |
---|---|
width |
The pixmap's width. |
height |
The pixmap's height. |
~CBitmap |
1.0 |
Destroy a pixmap object.
draw |
1.0 |
Draw the pixmap using a given rect as output position and a given offset of its source pixmap.
drawContext |
- |
---|---|
rect |
The output position |
offset |
An offset in the source pixmap. |
drawTransparent |
1.0 |
Same as previous function, but the color White (defined as 255, 255, 255) is used as transparency color.
drawAlphaBlend |
2.2 |
Used to blend the bitmap with the background. Transparency effect can be
regulated thanks to the alpha parameter.
getWidth |
1.0 |
Returns the width of the pixmap.
getHeight |
1.0 |
Returns the height of the pixmap.
forget |
1.0 |
Try to destroy itself if no more reference on it.
remember |
1.0 |
Add a reference to this pixmap.
getNbReference |
2.0$ |
Returns the number of references to this pixmap.
getHandle |
1.0 |
Returns the handle of the pixmap.
isLoaded |
2.0 |
Returns true
if the pixmap is loaded.
setTransparentColor |
2.2 |
Sets the transparent color for the bitmap.
getTransparentColor |
2.2 |
Returns the transparent color for the bitmap.
setTransparencyMask |
2.2 |
Creates a mask bitmap with the transparent color of the bitmap.