Monday, August 8, 2011

[android-developers] Bitmap references used by serialized Picture objects

Hi,

I'm using an android.graphics.Picture object to store a series of
drawing operations including a drawBitmap call, and then saving the
Picture object using the writeToStream method so that it can be
quickly loaded the next time it's needed.

I'm able to read the serialized picture object using
Picture.createFromStream and render it, but the bitmap doesn't show up
when the Picture is drawn. I'm assuming this is because the
serialized Picture object data doesn't include the bitmap pixel data,
just references to it.

Is there a way to provide a de-serialized Picture object with the
Bitmaps that it should use? Or is there a way to include the bitmaps
in the serialized data?

Thanks,

Mark

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment