ImageView: Displaying Images
The Dali::Toolkit::ImageView component displays an image.
Figure: ImageView
Creating an ImageView
The image view is constructed by passing a Dali::Image object. The Dali::Image is an abstract base class with multiple derived classes, and the Dali::ResourceImage class is used for loading an image from a file or URL. The following example shows how to create an ImageView object:
ImageView imageView = ImageView::New( myImageURL ); // Or Image image = ResourceImage::New( myImageURL ); ImageView imageView = ImageView::New( image );
Changing the Image
The image object can be changed later on by calling the ImageView::SetImage() function:
imageView.SetImage( newImage );