comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Pixmap problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Pixmap problem [message #45315] Tue, 30 August 2005 11:18
MA is currently offline  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!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idlwave - need some startup help
Next Topic: Reading and Writing Files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:31:09 PDT 2025

Total time taken to generate the page: 0.00427 seconds