diff options
Diffstat (limited to 'src/lib/evas/canvas/evas_image.eo')
-rw-r--r-- | src/lib/evas/canvas/evas_image.eo | 49 |
1 files changed, 12 insertions, 37 deletions
diff --git a/src/lib/evas/canvas/evas_image.eo b/src/lib/evas/canvas/evas_image.eo index 53c9076bcf..cdd06595ac 100644 --- a/src/lib/evas/canvas/evas_image.eo +++ b/src/lib/evas/canvas/evas_image.eo @@ -578,31 +578,6 @@ class Evas.Image (Evas.Object, Efl.File, Efl.Image, Efl.Gfx.Fill, Efl.Gfx.View, data: void *; /*@ The data pointer to be passed to @a func. */ } } - @property data_copy { - set { - /*@ - Replaces the raw image data of the given image object. - - This function lets the application replace an image object's - internal pixel buffer with an user-allocated one. For best results, - you should generally first call evas_object_image_size_set() with - the width and height for the new buffer. - - This call is best suited for when you will be using image data with - different dimensions than the existing image data, if any. If you - only need to modify the existing image in some fashion, then using - evas_object_image_data_get() is probably what you are after. - - Note that the caller is responsible for freeing the buffer when - finished with it, as user-set image data will not be automatically - freed when the image object is deleted. - - See @ref evas_object_image_data_get() for more details. */ - } - values { - data: void *; /*@ The raw data to replace. */ - } - } @property animated_frame { set { /*@ @@ -827,20 +802,20 @@ class Evas.Image (Evas.Object, Efl.File, Efl.Image, Efl.Gfx.Fill, Efl.Gfx.View, } } data_set { - /*@ - Sets the raw image data of the given image object. - - Note that the raw data must be of the same size (see - evas_object_image_size_set(), which has to be called @b before this - one) and colorspace (see evas_object_image_colorspace_set()) of the - image. If data is @c NULL, the current image data will be - freed. Naturally, if one does not set an image object's data - manually, it will still have one, allocated by Evas. - - @see evas_object_image_data_get() */ + [[Sets the raw image data of the given image object. + If data is NULL, the current image data will be freed and + Evas will allocate an empty surface. + ]] + legacy: null; /* legacy has a different signature */ params { - @in data: void *; /*@ The raw data, or @c NULL. */ + @in data: void *; [[The raw data, or NULL.]] + @in width: int; [[Image width in pixels.]] + @in height: int; [[Image height in pixels.]] + @in cspace: Evas.Colorspace; [[Colorspace of the pixel data.]] + @in copy: bool; [[If true, Evas will copy the data, + otherwise the client must keep the pointer alive.]] + @in stride: int; [[Image stride in bytes (optional).]] } } data_get @const { |