int ImageGetHeight(int im);
Returns a the height of an image in pixels.
Return Value
Returns a the height of an image in pixels.
Parameters
im Handle to an Image, returned by ImageAdd().
Availability
Available in DragonFireSDK 1.1 and later.
Example
Description: This program will load an image, Ball.png, and print its height and width to the debug console.
#include "DragonFireSDK.h"
void AppMain() { int im; int height; int width;
im = ImageAdd("Images/Ball.png");
height = ImageGetHeight(im); width = ImageGetWidth(im);
printf("Image Height=%d, Width=%d", height, width); }
void AppExit() {
}
void OnTimer() {
} |