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.
精彩评论