int ViewAdd(int im, int x, int y);
Add a View and attach the Image im (the handle returned by ImageAdd()) to the View.
Return Value
Returns an int handle to the view.
Parameters
im Image handle returned from ImageAdd().
x X coordinate.
y Y coordinate.
Remarks
The ViewAdd() function makes an image visible. Use ImageAdd() to load an image.
Availability
Available in DragonFireSDK 1.0 and later.
Example
This example adds a view with an image of a card to the screen.
#include "DragonFireSDK.h"
int im;
void AppMain() { im=ImageAdd("Cards/Card01.png"); ViewAdd(im,0,0); }
void AppExit() {
}
void OnTimer() {
} |