X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fimage-view%2Fimage-view.h;h=4a7545e0732f240dc94b38f006afd1ee60feeee1;hb=4c6d34154c81cf86b4c3662b81e1223f3326ceb5;hp=6fa3474c00d2232c39c89f91a21e2c516fb74f5f;hpb=618c084142032296c60a188b9438d63a81a2d264;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/image-view/image-view.h b/dali-toolkit/public-api/controls/image-view/image-view.h index 6fa3474..4a7545e 100644 --- a/dali-toolkit/public-api/controls/image-view/image-view.h +++ b/dali-toolkit/public-api/controls/image-view/image-view.h @@ -21,6 +21,9 @@ // INTERNAL INCLUDES #include +// EXTERNAL INCLUDES +#include + namespace Dali { @@ -32,7 +35,7 @@ namespace Internal DALI_INTERNAL class ImageView; } /** - * @addtogroup dali-toolkit-controls-image-view + * @addtogroup dali_toolkit_controls_image_view * @{ */ @@ -89,11 +92,17 @@ public: /** * @brief Create an initialized ImageView from an Image resource url * + * @note A valid size is preferable for efficiency. + * However, do not set size that is bigger than the actual image size, as the up-scaling is not available, + * the content of the area not covered by actual image is undefined, it will not be cleared. + * * If the string is empty, ImageView will display nothing * @param[in] url The url of the image resource to display. + * @param [in] size The width and height to fit the loaded image to. * @return A handle to a newly allocated ImageView. */ - static ImageView New( const std::string& url ); + static ImageView New( const std::string& url, + ImageDimensions size = ImageDimensions() ); /** * @brief Destructor @@ -141,11 +150,13 @@ public: * * If the handle is empty, ImageView will display nothing * - * @param[in] url The Image resource to display. - * * @since DALi 1.1.4 + * + * @param[in] url The Image resource to display. + * @param [in] size The width and height to fit the loaded image to. */ - void SetImage( const std::string& url ); + void SetImage( const std::string& url, + ImageDimensions size = ImageDimensions() ); /** * @deprecated Gets the Image