[haiku-development] Re: restart app_server

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 10 Jan 2012 09:09:04 +0100

On 10.01.2012 08:59, Stefano Ceccherini wrote:
2012/1/10 Stephan Aßmus<superstippi@xxxxxx>:

I think archiving may also be the reason why the complete bitmap data is
stored in the BPicture at all.


It's not only that.
BPictures are used for printing, too, and one could use the
BPicture::Play() method to implement its own BPicture
drawing/interpreting/whatever, so the BPicture needs to keep the
BBitmap data too. Moreover, the BBitmap data needs to be stored,
because if the bitmap is modified after it's drawn to a BPicture, the
BPicture needs to keep the old unmodified version.

Good points! (I am a bit out of the loop it appears...) But isn't the same true for BPictures in BPictures? Or is the trick here that BPictures are not modifyable after recording?

Best regards,
-Stephan



Other related posts: