Languages

Menu
Sites
Language
elm_image_orient_set api

Hi,

I have used elm_image_orient_set api and had checked my code on Z1 and Z3
On Z1 image rotates relative previous value of orientation - relative rotation, on Z3 always relative first orientation - absolute rotation.
where is true logic?
Thank you.
Alexey.

Responses

2 Replies
colin Rao

As below description from Tizen SDK 2.4b help doc(this version is for Z3, and Z1 not support those new features of SDK 2.4b), it add three new enum items, such as "ELM_IMAGE_ORIENT_90 [180 | 270]" by compare with the SDK 2.3.1.

Seems the image orient logic was changed in SDK 2.4b.

Possible orientation options for elm_image_orient_set().

elm_image_orient_set.png
Enumerator:
ELM_IMAGE_ORIENT_NONE 

no orientation change

ELM_IMAGE_ORIENT_0 

no orientation change

ELM_IMAGE_ROTATE_90 

rotate 90 degrees clockwise

ELM_IMAGE_ORIENT_90 

rotate 90 degrees clockwise

Since (EFL) :
1.13
ELM_IMAGE_ROTATE_180 

rotate 180 degrees clockwise

ELM_IMAGE_ORIENT_180 

rotate 180 degrees clockwise

Since (EFL) :
1.13
ELM_IMAGE_ROTATE_270 

rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise)

ELM_IMAGE_ORIENT_270 

rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise)

Since (EFL) :
1.13
ELM_IMAGE_FLIP_HORIZONTAL 

flip image horizontally

ELM_IMAGE_FLIP_VERTICAL 

flip image vertically

ELM_IMAGE_FLIP_TRANSPOSE 

flip the image along the y = (width - x) line (bottom-left to top-right)

ELM_IMAGE_FLIP_TRANSVERSE 

flip the image along the y = x line (top-left to bottom-right) 

Alex Dem

Hi,
Thank you.
Yes, looks like these states(orient 0,90,270) were added in 2.4b to highlight that it is absolute position of elm image (but not relative to previous orientation)
Alexey.