Reputation: 655
I am trying to develope an app on canvas ,i am drawing a bitmap on canvas with the help of canvas.drawBitmap().After that i want to convert that canvas into bitmap.
can anyone give me suggession
thanking you in advance
Upvotes: 0
Views: 2626
Reputation: 655
first of all these treat as a view including canvas and then here we need to use the screen capture concept of android we need to use a method decorView() and it returns a one bitmap object.
Upvotes: 0
Reputation: 440
toDataURL() would be great, if it worked in Android. Please star this issue! http://code.google.com/p/android/issues/detail?id=7901
Upvotes: 1
Reputation: 11
i suggest you look to the method toDataURL to obtain an image, but i doubt it while provide a bmp file, more likely to be png.
More info here : https://developer.mozilla.org/en/DOM/HTMLCanvasElement
Upvotes: 0