Re: pseudocolor and truecolor together
Re: pseudocolor and truecolor together
- Subject: Re: pseudocolor and truecolor together
- From: Keith Esau <email@hidden>
- Date: Thu, 22 Jan 2004 15:56:13 -0600
On 01/22/2004 1:45 PM, "matt shultz" <email@hidden> wrote:
> in followup to my previous post... does anyone out there know of any way
> currently on the mac to get both a pseudocolor and truecolor visual to be
> available simultaneously to an X server. we need both within the same
> program.
The short answer is, write your own pixel copy routine. This is what I had
to do for a Sun machine to display 8-bit pixel maps (PseudoColor) on a
24-bit display (TrueColor). For some reason, Xlib does not provide any
pixelmap translation routines, a big gap IMHO.
If you are looking to do palette flipping (changing the colormap to change
the image), you will have to recopy to the display after every change.
This is NOT a Mac only problem. I have had the same problem on both Sun and
HP, and you can duplicate it in Exceed by setting your Exceed bits to 16 or
higher. Forcing your users to use only 8-bits is not nice.
Keith Esau
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.