feat(sdl): support rounded images (#3012)
* added radius mask for rounded img * improved mask composite improved image zoom fidelity * implementing sdl image radius * low performance radius img drawing * improved rounded image performance * improved rounded image performance * improved rounded image blending * pixel perfect rounded image for SDL * accurate drawing only * supports rounded img for rect as well * fixed mask check when zoomed * surrounded rounded mask in lv_img with draw_complex check * updated docs * fixed build issue * aware of clip_corner property * reverted lv_img.c * updated docs
This commit is contained in:
@@ -100,7 +100,13 @@ It also means the layouts are not affected the by the transformations.
|
||||
|
||||
If you need the object size to be updated to the transformed size set `lv_img_set_size_mode(img, LV_IMG_SIZE_MODE_REAL)`. (The previous mode is the default and called `LV_IMG_SIZE_MODE_VIRTUAL`).
|
||||
In this case if the width/height of the object is set to `LV_SIZE_CONTENT` the object's size will be set to the zoomed and rotated size.
|
||||
If an explicit size is set then the overflowing content will be cropped.
|
||||
If an explicit size is set then the overflowing content will be cropped.
|
||||
|
||||
### Rounded image
|
||||
|
||||
You can use `lv_obj_set_style_radius` to set radius to an image, and enable `lv_obj_set_style_clip_corner` to clip the
|
||||
content to rounded rectangle or circular shape. Please note this will have some negative performance impact to CPU
|
||||
based renderers.
|
||||
|
||||
## Events
|
||||
No special events are sent by image objects.
|
||||
|
||||
Reference in New Issue
Block a user