int BitmapSetVisible(int bi, int flag);
Sets the visibility of the specified Bitmap surface.
Return Value
Return value not used.
Parameters
bi The handle to the Bitmap surface.
flag Visibility state of the Bitmap surface. 0 = invisible; 1 = visible.
Remarks
BitmapSetVisible() sets the visibility of on the Bitmap surface. A flag of 0 sets the surface invisible, and a flag of 1 sets the surface visible.
Availability
Available in DragonFireSDK 1.3 and later.
Example
The example below creates a 100 x 100 Bitmap surface and sets its pixels to white with full alpha and sets its x and y coordinates to 100, 100.
#include "DragonFireSDK.h" #include <string.h>
int MyBitmap; unsigned char *MyBits;
void AppMain() { MyBitmap = BitmapAdd(0, 0, 100, 100); MyBits = BitmapGetBits(MyBitmap); memset(MyBits, 0xFF, 100*100*4); BitmapSetxy(MyBitmap, 100, 100); BitmapSetVisible(MyBitmap, 1); BitmapUpdate(MyBitmap); }
void AppExit() {
}
void OnTimer() {
} |