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

Home » Public Forums » archive » DirectColor on linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: DirectColor on linux [message #18050 is a reply to message #17993] Wed, 24 November 1999 00:00 Go to previous messageGo to previous message
Vincent Favre-Nicolin is currently offline  Vincent Favre-Nicolin
Messages: 8
Registered: November 1999
Junior Member
David Fanning wrote:

> Vincent Favre-Nicolin (favre@polycnrs-gre.fr) writes:
>
>> Well, I woul like very much not using XOR, but then
>> I would have to redisplay the image (they can be up to 5000x3500,float)
>> each time I add some text on it. A bit time and memory-consuming...
>
> Well, not really. With Device Copy you can repair just
> that portion of the window that you drew something on.
> That is usually an extremely small region (e.g., a
> selection box, maybe). This is absolutely lickity-split.
> It takes no time at all. Even on a 5000 x 3500 image. :-)

The problem is that I am working on X-Ray diffraction images, for which
I have to index each reflections, ie I must append a small box and three
integers to 50 to 300 dots on the image. These reflections do cover quite a
fair amount of the image, so that copying each small zone isn't very
convenient nor efficient in that case.
To produce readable text on the image, I have divided the private,
256-colors table in two halves, the lower being used to display the
diffracted intensities (grayscale), and the upper half of the color table is
a one-color zone, so that text written using XOR appears in that color. That
works, although I do not consider this very nice code. But I really cannot
keep a copy of all or parts of the image in this case.


Vincent
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Number of colors of widget appliation
Next Topic: ANNOUNCE: plotconfig

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

Current Time: Sat Nov 29 14:03:41 PST 2025

Total time taken to generate the page: 0.08084 seconds