Pixmap problem [message #45315] |
Tue, 30 August 2005 11:18 |
MA
Messages: 15 Registered: August 2005
|
Junior Member |
|
|
I'm trying to solve a problem using a pixmap image and would be
grateful for some advice. I have a plot with ~5500 irregular boxes
(POLYFILL plot). I want to make the plot clickable, so I can retrieve
and alter the information associated with each of the boxes. I'd like
to use a pixmap as a lookup table in which to save a unique index for
each box. On clicking the plot, I should then be able to find the index
corresponding to the clicked box by looking at the same pixel in the
pixmap.
My problem is the following: I have ~ 5500 boxes (indeces), but
POLYFILL only accepts color tables (8 bits - maximum of 256 unique
indeces), or so it seems. Is there any way to get my pixmap image to be
in 24 bit color, so I can use 3x8 bits to construct my indeces from?
The 'TrueColor' keyword in 'device, COPY...' should then allow me to
retrieve the 2x8 bit information. I've been playing around a bit with
the decomposed setting, but without much luck.
Thanks a lot!
|
|
|