Image Object Image Size Functions

Functions that change the size of the image used by an image object. More...

Functions

EAPI void evas_object_image_size_set (Evas_Object *obj, int w, int h)
 Sets the size of the image to be display by the given image object.
EAPI void evas_object_image_size_get (Evas_Object *obj, int *w, int *h)
 Retrieves the size of the image displayed by the given image object.

Detailed Description

Functions that change the size of the image used by an image object.


Function Documentation

EAPI void evas_object_image_size_get ( Evas_Object obj,
int *  w,
int *  h 
)

Retrieves the size of the image displayed by the given image object.

Parameters:
obj The given image object.
w A pointer to an integer in which to store the width. Can be NULL.
h A pointer to an integer in which to store the height. Can be NULL.

EAPI void evas_object_image_size_set ( Evas_Object obj,
int  w,
int  h 
)

Sets the size of the image to be display by the given image object.

This function will scale down or crop the image so that it is treated as if it were at the given size. If the size given is smaller than the image, it will be cropped. If the size given is larger, then the image will be treated as if it were in the upper left hand corner of a larger image that is otherwise transparent.

Parameters:
obj The given image object.
w The new width.
h The new height.