Skip to content

[Question] Can we prevent the user from drawing outside the image? #134

Closed Answered by hm21
thanglq1 asked this question in Q&A
Discussion options

You must be logged in to vote

The configs you mention are inside ImageGeneratioConfigs which, as the name says, is only for image generation.
Currently, there are no other configs that allow this. However, you can also work with customWidgets, where for example, you put a container outside the image areas and use IgnorePointer or AbsorbPointer so that the user can't draw there.

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@mbenci
Comment options

@mbenci
Comment options

@hm21
Comment options

@mbenci
Comment options

@mbenci
Comment options

Answer selected by hm21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants