burhanrashid52 / PhotoEditor

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
MIT License
4.12k stars 989 forks source link

Shapes opacity doesn't work #427

Closed didi789 closed 2 years ago

didi789 commented 2 years ago

Describe the bug Shapes opacity doesn't work

image

burhanrashid52 commented 2 years ago

@stephanepechard Can you look into this ?

PauliusVal commented 2 years ago

In DrawingView paint color must be set before setting the alpha value, so these two lines must be switched:

https://github.com/burhanrashid52/PhotoEditor/blob/e617f96142dae5f5a52fd5d58775ebb99f21a2f9/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.java#L79-L80

burhanrashid52 commented 2 years ago

@PauliusVal Thanks. Can you raise a PR with test ?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 5 days with no activity.