X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fimage-view.h;h=9b18dfc5ae7fe4591b07e0f851f6d769d82b571a;hb=acbf7e2c17c1578c7125fa07c7eaabe1fe214406;hp=5822da57a07155a87aec3b7d10a7df9fff4d57b5;hpb=1acdb36279de888dcef999e0e0e1460babdd983a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/programming-guide/image-view.h b/docs/content/programming-guide/image-view.h index 5822da5..9b18dfc 100644 --- a/docs/content/programming-guide/image-view.h +++ b/docs/content/programming-guide/image-view.h @@ -24,6 +24,11 @@ * Dali::Toolkit::ImageView myImageView = ImageView::New( "source-image-url.9.png" ); * @endcode * + * A path to a svg image file: + * @code + * Dali::Toolkit::ImageView myImageView = ImageView::New( "source-image-url.svg" ); + * @endcode + * *

Loading from a Image handle

* Dali::Image is an abstract base class with multiple derived classes. * @@ -64,10 +69,10 @@ * * @code * Property::Map imageProperty; - * imageProperty.Insert("imageUrl", "source-image-url.png"); - * imageProperty.Insert("imageFittingMode", "scaleToFill"); - * imageProperty.Insert("fitWidth", 240); - * imageProperty.Insert("fitHeight", 240); + * imageProperty.Insert("url", "source-image-url.png"); + * imageProperty.Insert("fittingMode", "SCALE_TO_FILL"); + * imageProperty.Insert("desiredWidth", 240); + * imageProperty.Insert("desiredHeight", 240); * Dali::Toolkit::ImageView myImageView = Dali::Toolkit::ImageView::New(); * myImageView.SetProperty( Control::Property::IMAGE, imageProperty); @@ -81,10 +86,10 @@ * * The fitting modes and a suggested use-case for each are as follows: *
    - *
  1. "shrinkToFit" Full-screen image display: Limit loaded image resolution to device resolution but show all of image. - *
  2. "scaleToFill" Thumbnail gallery grid: Limit loaded image resolution to screen tile, filling whole tile but losing a few pixels to match the tile shape. - *
  3. "fitWidth" Image columns: Limit loaded image resolution to column. - *
  4. "fitHeight" Image rows: Limit loaded image resolution to row height. + *
  5. "SHRINK_TO_FIT" Full-screen image display: Limit loaded image resolution to device resolution but show all of image. + *
  6. "SCALE_TO_FILL" Thumbnail gallery grid: Limit loaded image resolution to screen tile, filling whole tile but losing a few pixels to match the tile shape. + *
  7. "FIT_WIDTH" Image columns: Limit loaded image resolution to column. + *
  8. "FIT_HEIGHT" Image rows: Limit loaded image resolution to row height. *
* * The dali-demo project contains a full example under @@ -107,7 +112,7 @@ *

Changing the image

* The Image View can be changed by calling Dali::Toolkit::ImageView::SetImage methods or by changing the IMAGE property. * @code - * myImageActor.SetImage( newImage ); + * myImageView.SetImage( newImage ); * @endcode * */