Efl.Image (interface)

Description

Common APIs for all 2D images that can be rendered on the canvas.

Members

border (get, set)

Dimensions of this image's border, a region that does not scale with the center area.
void efl_image_border_get(const Eo *obj, int *l, int *r, int *t, int *b);
void efl_image_border_set(Eo *obj, int l, int r, int t, int b);


border_center_fill (get, set)

Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it.
Efl_Gfx_Border_Fill_Mode efl_image_border_center_fill_get(const Eo *obj);
void efl_image_border_center_fill_set(Eo *obj, Efl_Gfx_Border_Fill_Mode fill);


border_scale (get, set)

Scaling factor applied to the image borders.
double efl_image_border_scale_get(const Eo *obj);
void efl_image_border_scale_set(Eo *obj, double scale);


content_hint (get, set)

Efl_Image_Content_Hint efl_image_content_hint_get(const Eo *obj);
void efl_image_content_hint_set(Eo *obj, Efl_Image_Content_Hint hint);


image_size (get)

This represents the size of the original image in pixels.
Eina_Size2D efl_image_size_get(const Eo *obj);


ratio (get)

The native width/height ratio of the image.
double efl_image_ratio_get(const Eo *obj);


scale_hint (get, set)

Efl_Image_Scale_Hint efl_image_scale_hint_get(const Eo *obj);
void efl_image_scale_hint_set(Eo *obj, Efl_Image_Scale_Hint hint);


scale_type (get, set)

Control how the image is scaled.
Efl_Image_Scale_Type efl_image_scale_type_get(const Eo *obj);
void efl_image_scale_type_set(Eo *obj, Efl_Image_Scale_Type scale_type);


smooth_scale (get, set)

Whether to use high-quality image scaling algorithm for this image.
Eina_Bool efl_image_smooth_scale_get(const Eo *obj);
void efl_image_smooth_scale_set(Eo *obj, Eina_Bool smooth_scale);


Events

preload

Image data has been preloaded.
EFL_IMAGE_EVENT_PRELOAD(void)


resize

Image was resized (its pixel data).
EFL_IMAGE_EVENT_RESIZE(void)


unload

Image data has been unloaded (by some mechanism in EFL that threw out the original image data).
EFL_IMAGE_EVENT_UNLOAD(void)