Fill the complete canvas but keep the bound fill area as it is like circle, rectangle

前端 未结 3 1911
灰色年华
灰色年华 2020-12-09 23:42

possible duplicate

Hello friends,

I creating paint application, I have problem in that. If I draw the rectangle without fill and or another like bound area a

3条回答
  •  一生所求
    2020-12-10 00:40

    You might also want to look at using the clip region as in these 2 questions:

    • Using clipRect - explanation
    • Canvas.clipPath(Path) not clipping as expected

    Depending on what you want to do, they may be useful.

    I found your question because I didn't know what to google for, and the answer I wanted was not using Flood Fill.

提交回复
热议问题