saber icon indicating copy to clipboard operation
saber copied to clipboard

Image croping (clipping)

Open QubaB opened this issue 2 years ago • 0 comments

Motivation

I would like to implement image crop/clip. Before I start programming I would like to ask if somebody is working on it.

For my purposes is sufficient clip image by rectangle. If somebody needs more sophisticated clip by path please let me know.

Solution

I would like to ask @adil192 if it is necessary to meet any conditions regarding the extension of EditorImage/PngEditorImage class and the implementation of images.

It is not clear to me from the source code meaning of EditorImage.naturalSize and EditorImage.srcRect. It seems to me that in PngEditorImage is naturalSize derived from srcRect. Which of these should contain original size of image?

Alternatives

No response

Saber version

v0.19.0

Device

any device

Anything else?

No response

QubaB avatar Jan 01 '24 10:01 QubaB