[futurebasic] GWorld color table

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

From: Sylvain Guillemette <allmedia@...>
Date: Thu, 28 Jan 1999 00:11:14 -0500
Hi,

Here's my latest headache generator :

I want to create a GWorld that will use a color table.
Is it possible to use a 'Pltt' or 'clut' resource ?

I want to use a 216 colors 'web' palette to do
color reduction on my PICT's.
I'm using the Gif image filter from Staz to save the image.

I understand the NEWGWORLD function, but not gwCTabh& and gdH&.

Err% = FN NEWGWORLD (gwPtr&,gwPixDepth%,gwRect,gwCTabH&,gdH&,gwFlags&)


This is from Inside Mac:

The NewGWorld function generates an inverse table with the Color Manager
procedure MakeITable, unless one of the GDevice records for the screens has
the same color table as the GDevice record for the offscreen world, in
which case NewGWorld uses the inverse table from that GDevice record.

MAN !  No doubts why E.T. wanted to go home

Any help is welcome;

Thanks

Sylvain