int BitmapSetxy(int bi, int x, int y);

 

Sets the x and y coordinates of the Bitmap surface referred to by the handle bi.

 

Return Value

 

Return value not used.

 

Parameters

 

bi

The handle to the Bitmap surface to be moved.

 

x

The new x coordinate of the Bitmap surface on the screen.

 

y

The new y coordinate of the Bitmap surface on the screen.

 

Remarks

 

BitmapSetxy() updates the location of a Bitmap surface to the specified x and y coordinates.

 

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()

{

 

}