Page 1 of 1

PostPosted: Sun Apr 18, 2004 5:39 pm
by gmigueis
When will we have a GetPixelColor function? Is there any way of achieving this with PocketC (get color of a pixel on screen or on a buffer) ? Is there any way of getting the array of an offscreen buffer? Would not be nice if one could do: c=offscreenbufferID[12]; ?

:) Thanks,
Guilherme Migu?ɬ©is

PostPosted: Mon Apr 19, 2004 12:14 am
by jstadolnik
The PToolboxLib has a GetPixel() function.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Is there any way of getting the array of an offscreen buffer?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

No. PocketC only supports a max of around 9000 array elements... there are far more pixels (25.6k on just a 160x160 screen).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm