Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the deletion method #573

Open
Muzixj opened this issue Dec 24, 2024 · 2 comments
Open

Regarding the deletion method #573

Muzixj opened this issue Dec 24, 2024 · 2 comments

Comments

@Muzixj
Copy link

Muzixj commented Dec 24, 2024

what should I do if I want to delete a rectangular shape drawn by the setShape() method?

val shapeBuilder = ShapeBuilder()
                        .withShapeType(ShapeType.RECTANGLE)
                        .withShapeSize(2f)
                        .withShapeColor(Color.parseColor("#FF9429"))
photoEditor?.apply {
                        setBrushDrawingMode(true)
                        setShape(shapeBuilder)
                    }
@burhanrashid52
Copy link
Owner

Just call photoEditor.undo() ?

@Muzixj
Copy link
Author

Muzixj commented Jan 3, 2025

What should I do if I delete the border by clicking the button like I did to delete Text/Emoji/Image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants