[haiku-development] Re: Blitting

  • From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 14 Sep 2009 22:48:25 +0200 CEST

Caitlin Shaw <rogueeve@xxxxxxxxxxxxx> wrote:
> I'm wondering what kind of support does Haiku offer for
> what's commonly called "bit-block-transfer" or "copybits"
> (within normal applications, not talking about the Game Kit).
> 
> I've managed to:
> 
> * Implement an off-screen buffer by creating a BBitmap and 
> associating 
> it with a BView, then blitting the buffer to the screen by calling 
> DrawBitmap on the target BView, and,
 ...
> It seems that surely there would be some function which
> takes two BViews and copies between

Doesn't BView::DrawBitmap(const BBitmap* image, BRect source,
BRect destination) let you copy a specific part of your off-
screen bitmap into your on-screen view?

/Jonas.


Other related posts: