int ViewGetHeight(int im);

 

Returns a the height of a view in pixels.

 

Return Value

 

Returns a the height of a view in pixels.

 

Parameters

 

im

Handle to a View, returned by ViewAdd().

 

Availability

 

Available in DragonFireSDK 1.1 and later.

 

Example

 

Description: This program will load an image, Ball.png, into a View and print its height and width to the debug console.

 

#include "DragonFireSDK.h"

 

void AppMain()

{

  int im;

  int vw;

  int height;

  int width;

 

  im = ImageAdd("Images/Ball.png");

  vw = ViewAdd(im, 0, 0);

 

  height = ViewGetHeight(im);

  width = ViewGetWidth(im);

 

  printf("Image Height=%d, Width=%d", height, width);  

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}