X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fimages%2Fresource-image.h;h=e57425b2848ed5c9247280aea4ccfabc741a59f3;hb=b251acf89ee02a2d295f9b94f9e482bf9c66d82a;hp=cf8d6fabeb306ff1857ed5b438ae21952c3c578d;hpb=c8b2fcdd9b4eb8fe1930d63655a0fc62285dc7b0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/images/resource-image.h b/dali/public-api/images/resource-image.h index cf8d6fa..e57425b 100644 --- a/dali/public-api/images/resource-image.h +++ b/dali/public-api/images/resource-image.h @@ -29,6 +29,10 @@ namespace Dali { +/** + * @addtogroup dali-core-images + * @{ + */ namespace Internal DALI_INTERNAL { @@ -40,26 +44,16 @@ class ResourceImage; * *

ResourceImage Loading

* - * When the ResourceImage is created, resource loading will be attempted unless - * the ResourceImage is created with IMMEDIATE loading policy or a compatible resource is found in cache. - * In case of loading images ON_DEMAND, resource loading will only be attempted if the associated ImageActor - * is put on Stage. + * When the ResourceImage is created, resource loading will be attempted unless a compatible resource is found in cache. * Scaling of images to a desired smaller size can be requested by providing desired dimensions, * scaling mode and filter mode to to ResourceImage::New(). * - * LoadPolicies - * - IMMEDIATE: acquire image resource when creating ResourceImage. - * - ON_DEMAND: only load in case the associated ImageActor is put on Stage - * - * Resolution of conflicting policies - * If the same image is created more than once with conflicting policies, LoadPolicy "IMMEDIATE" overrides "ON_DEMAND". - * * Custom load requests * Size, scaling mode, filter mode, and orientation compensation can be set when requesting an image. * * Compatible resources * - * Before loading a new ResourceImage the internal image resource cache is checked by dali. + * Before loading a new ResourceImage the internal image resource cache is checked by DALi. * If there is an image already loaded in memory and is deemed "compatible" with the requested image, * that resource is reused. * This happens for example if a loaded image exists with the same URL, scaling and filtering modes, @@ -69,9 +63,7 @@ class ResourceImage; * * The same request used on creating the ResourceImage is re-issued when reloading images. * If the file changed since the last load operation, this might result in a different resource. - * Reload only takes effect if both of these conditions apply: - * - The ResourceImage has already finished loading - * - The ResourceImage is either on Stage or using IMMEDIATE load policy + * Reload only takes effect if the ResourceImage has already finished loading * * Signals * | %Signal Name | Method | @@ -81,12 +73,10 @@ class ResourceImage; class DALI_IMPORT_API ResourceImage : public Image { public: - /** - * @brief Resource management options. - */ /** * @brief LoadPolicy controls the way images are loaded into memory. + * @deprecated DALi 1.1.3 Image loading starts immediately in the frame when then ResourceImage object is created */ enum LoadPolicy { @@ -163,6 +153,8 @@ public: /** * @brief Create an initialised ResourceImage object. * + * @deprecated DALi 1.1.3 use New( const std::string& url ) instead. + * * @param [in] url The URL of the image file to use. * @param [in] loadPol The LoadPolicy to apply when loading the image resource. * @param [in] releasePol The ReleasePolicy to apply to Image. @@ -190,6 +182,8 @@ public: /** * @brief Create an initialised ResourceImage object. * + * @deprecated DALi 1.1.3 use New( const std::string& url, ImageDimensions size ) instead. + * * @param [in] url The URL of the image file to use. * @param [in] loadPol The LoadPolicy to apply when loading the image resource. * @param [in] releasePol The ReleasePolicy to apply to Image. @@ -221,6 +215,7 @@ public: /** * @brief Return load policy. + * @deprecated DALi 1.1.3 * * @return resource load policy */ @@ -266,6 +261,9 @@ public: // Not intended for application developers explicit DALI_INTERNAL ResourceImage( Internal::ResourceImage* ); }; +/** + * @} + */ } // namespace Dali #endif // __DALI_RESOURCE_IMAGE_H__