Tizen Native API
5.0
|
An Image object represents an image resource that can be used for rendering. More...
Public Types | |
typedef Signal< void(Image) > | ImageSignalType |
Type of signal for Image Uploaded. | |
Public Member Functions | |
Image () DALI_DEPRECATED_API | |
Constructor which creates an empty Image handle. | |
~Image () DALI_DEPRECATED_API | |
Destructor. | |
Image (const Image &handle) DALI_DEPRECATED_API | |
This copy constructor is required for (smart) pointer semantics. | |
Image & | operator= (const Image &rhs) DALI_DEPRECATED_API |
This assignment operator is required for (smart) pointer semantics. | |
uint32_t | GetWidth () const DALI_DEPRECATED_API |
Returns the width of the image. | |
uint32_t | GetHeight () const DALI_DEPRECATED_API |
Returns the height of the image. | |
ImageSignalType & | UploadedSignal () DALI_DEPRECATED_API |
This signal is emitted when the image data gets uploaded to GL. | |
Static Public Member Functions | |
static Image | DownCast (BaseHandle handle) DALI_DEPRECATED_API |
Downcasts a handle to Image handle. |
An Image object represents an image resource that can be used for rendering.
Image objects can be shared between Actors. This is practical if you have a visual element on screen which is repeatedly used.
The image resource is released as soon as the last Image handle is released.
Image objects are responsible for the underlying resource's lifetime.
Signals | Signal Name | Method | |------------------------|------------------------------| | uploaded | UploadedSignal() |
typedef Signal< void (Image) > Dali::Image::ImageSignalType |
Type of signal for Image Uploaded.
Constructor which creates an empty Image handle.
This class has no New method. Use the appropriate New method of its subclasses to create an initialized handle. (Dali::BufferImage::New(), Dali::EncodedBufferImage::New(), Dali::FrameBufferImage::New(), Dali::NativeImage::New(), Dali::ResourceImage::New()).
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::Image::Image | ( | const Image & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
static Image Dali::Image::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to Image handle.
If handle points to a Image object, the downcast produces valid handle. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Reimplemented in Dali::ResourceImage, Dali::BufferImage, Dali::EncodedBufferImage, Dali::NativeImage, and Dali::FrameBufferImage.
uint32_t Dali::Image::GetHeight | ( | ) | const |
Returns the height of the image.
Returns either the requested height or the actual loaded height if no specific size was requested.
uint32_t Dali::Image::GetWidth | ( | ) | const |
Returns the width of the image.
Returns either the requested width or the actual loaded width if no specific size was requested.
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |
This signal is emitted when the image data gets uploaded to GL.
It Will be sent after an actor using the image is added to the stage, when such a staged image is reloaded, or when a staged BufferImage calls Update().