~~Title: Efl.Gfx.Image_Orientation~~
===== Description =====
%%An orientation type, to rotate and flip images.%%
%%This is similar to EXIF's orientation. Directional values (%%''up''%%, %%''down''%%, %%''left''%%, %%''right''%%) indicate the final direction in which the top of the image will be facing (e.g. a picture of a house will have its roof pointing to the right if the %%''right''%% orientation is used). Flipping values (%%''flip_horizontal''%% and %%''flip_vertical''%%) can be additionally added to produce a mirroring in each axis. Not to be confused with %%[[:develop:api:efl:ui:layout_orientation|Efl.Ui.Layout_Orientation]]%% which is meant for widgets, rather than images and canvases. This enum is used to rotate images, videos and the like.%%
//Since 1.23//
{{page>:develop:api-include:efl:gfx:image_orientation:description&nouser&nolink&nodate}}
===== Fields =====
{{page>:develop:api-include:efl:gfx:image_orientation:fields&nouser&nolink&nodate}}
* **none** - %%Default, same as up, do not rotate.%%
* **up** - %%Orient up, do not rotate.%%
* **right** - %%Orient right, rotate 90 degrees clock-wise.%%
* **down** - %%Orient down, rotate 180 degrees.%%
* **left** - %%Orient left, rotate 270 degrees clock-wise.%%
* **rotation_bitmask** - %%Bitmask that can be used to isolate rotation values, that is, %%''none''%%, %%''up''%%, %%''down''%%, %%''left''%% and %%''right''%%.%%
* **flip_horizontal** - %%Mirror horizontally. Can be added to the other values.%%
* **flip_vertical** - %%Mirror vertically. Can be added to the other values.%%
* **flip_bitmask** - %%Bitmask that can be used to isolate flipping values, that is, %%''flip_vertical''%% and %%''flip_horizontal''%%.%%
===== Signature =====
enum Efl.Gfx.Image_Orientation {
none: 0,
up: 0,
right: 1,
down: 2,
left: 3,
rotation_bitmask: 3,
flip_horizontal: 4,
flip_vertical: 8,
flip_bitmask: 12
}
===== C signature =====
typedef enum {
EFL_GFX_IMAGE_ORIENTATION_NONE = 0,
EFL_GFX_IMAGE_ORIENTATION_UP = 0,
EFL_GFX_IMAGE_ORIENTATION_RIGHT = 1,
EFL_GFX_IMAGE_ORIENTATION_DOWN = 2,
EFL_GFX_IMAGE_ORIENTATION_LEFT = 3,
EFL_GFX_IMAGE_ORIENTATION_ROTATION_BITMASK = 3,
EFL_GFX_IMAGE_ORIENTATION_FLIP_HORIZONTAL = 4,
EFL_GFX_IMAGE_ORIENTATION_FLIP_VERTICAL = 8,
EFL_GFX_IMAGE_ORIENTATION_FLIP_BITMASK = 12
} Efl_Gfx_Image_Orientation;