From: | Tim Hanson |
Date: | 22 Dec 99 at 20:52:57 |
Subject: | Re: SUPERBITMAP window |
From: Tim Hanson <msinister@connectfree.co.uk>
Hi Adrien
Adrien HEMERY wrote this on 21-Dec-99 at 18:43:40
> i open a superbitmap window and i give a pointer to a bitmap (opened with
> InitBitMap()). The screen is a 640x480 one. So the window's bitmap is
> 640x960 (480x2) as i want to do double buffer. All is ok.
> But i want to swap of position between (0,0) and (0,480) to simulate the
> double buffer. My question is HOW ????
> How can i move inside the bitmap ?
> I heard about ScrollVPort(), but i dont ee why.....
Don`t open a superbitmap window to do this. Open a double height screen and
open a window on it then draw to the screen instead you can then use
ScrollVPort() on the screens ViewPort.
This may not be what you want. If you need a window smaller than the whole
viewing area. You need 2 bitmaps IIRC. I`ve never tried this so praps someone
else will fill you in.
BTW best use AllocBitMap() for future compatibility. It`s v39+ but is anyone
writing for OS2 anymore?
Tim Hanson,
by the River,Canterbury, Kent.
Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
170MB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
Don`t waste your time by visiting
http://www.sinister67.freeserve.co.uk