Skip to content

Image croping (clipping) #1088

Open
@QubaB

Description

@QubaB

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions