Description |
Parent class: XGraphicObject
XBitmap |
| XGraphicDevice * device | owner |
| XPoint * p | left-lower corner |
| LONG mode | mode, default is ROP_SRCCOPY |
Construct a bitmap
Construct a bitmap. Dont use this constructor for usage with an graphic device.
If the method fails an exception of the type XException is thrown.
Load |
char * fileName filename of the file to load
XResource * resource resource
load a bitmap from a file
load a bitmap from a resource library
If the method fails to create a new bitmap an exception of the type XException is thrown.
Copy |
XGraphicDevice * device target
XPoint * p point to copy to
copy the content of the bitmap to a graphic device
GetDimensions |
XSize * size buffer to hold the size
Returns the dimensions
SetOutputSize |
XRect * rect new rect (only width and height will be used)
Set the size of the bitmap to draw. If it is diferent from it physical size, the bitmap will be stretched.