[futurebasic] Re: [FB] GetCPixel in Offscreen gWorld

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Robert Covington <t88@...>
Date: Sat, 19 Jun 1999 20:10:03 -0800
>  What is the right way to use GetCPixel in an offscreen gworld? Some
>source I have for a program shows that one can, but when I try it in
>another program, I am getting the wrong results (white only). I am using
>the "Pixel Manipulation...Offscreen.bas" example (FB
>Examples/Handbook/OffscreenGWorlds),and GetCPixel only works if I copybits
>the picture first.

Well, nobody responded but I figured it out anyway that the problem was the
SetPort(wndPort&) call before I was using GetCPixel,and the lack of a
GetPixMap call that I needed for the offPort&. So it is possible to use
GetCPixel in an offscreen gWorld, which is what I was really wondering.
Rowbytes and PEEK is much faster, though GetCPixel wasn't as slow as I
thought it would be to scan a whole picture.

Anyone know if colorspaces other than RGB are also going to give 0-255
levels per channel in an offscreen gWorld? (32 Bit)

Robert Covington