From: | Allan Odgaard |
Date: | 14 Aug 2000 at 09:00:31 |
Subject: | Re: CGX and Bitmaps |
On 13-Aug-00, Rik Sweeney wrote:
>> Sorry, but what exactly did you expect should happen with the
>> bitmap?
> Once the bitmap had been allocated I was attempting to draw to the
> bitmap and see a result on the screen.
Well, as someone alrady said then the bitmap is "offscreen", i.e. not
visible.
You can transfer the contents of the bitmap to the screen/window by
using something like BltBitMapRastPort() from graphics.library.
> Basically I want to do double
> buffering on CGX but can't find any way to do it apart from make a
> screen twice the height and scroll back and forth, which I don't
> think
> is very efficient.
Drawing in the bitmap, as you do now, and then copying it to the screen
with a bltbitmap-function should do fine.
Regards Allan