enum @beta Efl.Gfx.Image_Scale_Type { [[Enumeration that defines scale types of an image.]] none, [[Use the image's natural size.]] fill, [[Scale the image so that it matches the object's area exactly. The image's aspect ratio might be changed.]] fit, [[Scale the image so that it fits completely inside the object's area while maintaining the aspect ratio. At least one of the dimensions of the image will be equal to the corresponding dimension of the object.]] fit_width, [[Scale the image so that it covers the entire object area horizontally while maintaining the aspect ratio. The image may become taller than the object.]] fit_height, [[Scale the image so that it covers the entire object area vertically while maintaining the aspect ratio. The image may become wider than the object.]] expand, [[Scale the image so that it covers the entire object area on one axis while maintaining the aspect ratio, preferring whichever axis is largest. The image may become larger than the object.]] tile, [[Tile image at its original size.]] }
Description
Description
Details
Details
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | None | T7873 efl.ui.image | ||
Resolved | None | T7880 efl.ui.bg | ||
Resolved | None | T7875 Efl.Gfx.Image | ||
Resolved | None | T7927 enum Efl.Gfx.Image_Scale_Type |
Comment Actions
Just Idea
I know Android use same name for this property, but it is not clear what does it mean, it may understood as scaling algorithm used like ( Bilinear, Bicubic, .. etc).
but when using more specific name like (resize_mode, fit_mode, stretch_mode) because it is related to viewing not actual image property.
I also suggest modes to be :
main modes
-None (actual size),
-Fit,
-Fill,
-Stretch(aspect ration Change),
-FitWidth,
-FitHeight
-Tile (I did not use such property in image control before )
Also I suggest other property for Image Viewing called Align (it can be flags)
- left
- top
- bottom
- right
- center
And since these properties related to viewing content should be inside efl.ui.image widget which is responsible for viewing image