int ViewSetImage(int vw, int im);
Change the Image that a View displays.
Return Value
Return value is not used.
Parameters
vw View handle returned from ViewAdd().
im View handle returned from ImageAdd().
Remarks
The ViewSetImage() function changes the image in a view area.
Availability
Available in DragonFireSDK 1.0 and later.
Example
Description: This example will set up a view area, load Ball.png and then change the image to Square.png.
#include "DragonFireSDK.h"
void AppMain() { int ViewHandle; int ImageHandle;
ViewHandle = ViewAdd("Ball.png", 0, 0); ImageHandle = ImageAdd("Square.png"); ViewSetImage(ViewHandle, ImageHandle); }
void AppExit() {
}
void OnTimer() {
} |