开发者

Editing the portion of canvas

I want to cut the portion on canvas, and paste it somewhere else in the canvas(like Ms Paint).. is it possibl开发者_如何学运维e? Please suggest me a way to do it


A Canvas does not hold an image. It is a utility for drawing onto something else. The "something else" is the device's screen for the Canvas passed to onDraw, but you can create a Bitmap and then create a Canvas that draws into that Bitmap. Then you can paint a portion of the Bitmap (using another Canvas) into the destination to do a copy/paste operation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜