[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Saurav Mukherjee
try PictureDrawable class.. PictureDrawable pd=new PictureDrawable(String source); since this is a drwable, typecasting to Drawable, and getBitmap()... jus a suggestion... c if it works cheers! On Thu, Jun 4, 2009 at 12:45 PM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi , I am trying to

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Sujay Krishna Suresh
If u r talking in the context of storing a canvas to a bitmap, then i'd ask u to use the canvas constructor that takes a bitmap as arg... once ur drawing is complete, jus store this bitmap... that'll do... On Thu, Jun 4, 2009 at 2:47 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote:

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Jerry Fan
Hi Sujay, Did you mean the bitmap assigned to Canvas construction is actually used for combing all kind of text, line, and picture drawing action into one piece of bitmap object? I'll try it and show you the code tomorrow. Thanks for your advice. On Thu, Jun 4, 2009 at 5:26 PM, Sujay Krishna

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread yandong
I also want to know how to do it. Anyone knows? On Thu, Jun 4, 2009 at 15:18, yandong yd.nv...@gmail.com wrote: up On Thu, Jun 4, 2009 at 15:15, jerryfan2000 jerryfan1...@gmail.com wrote: Hi , I am trying to figure out how to do convertion of Picture object generated by webView to

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread yandong
up On Thu, Jun 4, 2009 at 15:15, jerryfan2000 jerryfan1...@gmail.com wrote: Hi , I am trying to figure out how to do convertion of Picture object generated by webView to Bitmap for later JPEG encoding and saving to local f/s. I tried to create a bitmap from pre created Picture object by