Hi Jeremey,

You can give this a try:

    Bitmap bm = Bitmap.createBitmap(picture.getWidth(),
                                    picture.getHeight(),
                                    Bitmap.Config.RGB_565);
    Canvas c = new Canvas(bm);
    picture.draw(c);


--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.



On Jun 8, 7:26 pm, "[email protected]" <[email protected]>
wrote:
> All,
>
> I would like to convert a Picture object to Bitmap object in memory,
> without writing data to disk.
>
> Thanks in advance for your time and help.
> Regards,
> -Jeremy.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to