Evas_Object_Image_Size (3) - Linux Manuals

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

NAME

Image Object Image Size Functions - Functions that change the size of the image used by an image object.

Functions


EAPI void evas_object_image_size_set (Evas_Object *obj, int w, int h)
Sets the size of the given image object.
EAPI void evas_object_image_size_get (const Evas_Object *obj, int *w, int *h)
Retrieves the size of the given image object.
EAPI int evas_object_image_stride_get (const Evas_Object *obj)
Retrieves the row stride of 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 (const Evas_Object * obj, int * w, int * h)

Retrieves the size of the given image object.

See evas_object_image_size_set for more details.

Parameters:

obj The given image object.
w Location to store the width of the image in, or NULL.
h Location to store the height of the image in, or NULL.

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

Sets the size of 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 of the image.
h The new height of the image.

EAPI int evas_object_image_stride_get (const Evas_Object * obj)

Retrieves the row stride of the given image object,.

The row stride is the number of units between the start of a row and the start of the next row.

Parameters:

obj The given image object.

Returns:

The stride of the image.

Author

Generated automatically by Doxygen for Evas from the source code.