Add a new view to a container or the screen for image display.




Use one of the ViewAdd() functions below to make an image viewable on the screen. After using the ImageAdd() function to load the image to memory, use ViewAdd() to create a place to view it on the screen. Change the image in a view using ViewSetImage(). The ViewAdd() functions that include a filename call ImageAdd() internally to load the image for you, and the one with a callback also internally calls TouchAdd() to make the view touchable.


int ViewAdd(int im, int x, int y);

int ViewAdd(char *filename, int x, int y);

int ViewAdd(char *filename, int x, int y, int (*callback)(int id, int event, int x, int y), int id);




Available in DragonFireSDK 1.0 and later.