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

Home » Public Forums » archive » Re: XLOADCT under Windows 95 vs. Windows NT 4.0
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
Re: XLOADCT under Windows 95 vs. Windows NT 4.0 [message #7167] Tue, 08 October 1996 00:00
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
imad@mit.edu wrote in article <533ue8$ia3@senator-bedfellow.MIT.EDU>...

> I'm having this strange problem using XLOADCT on our Windows 95
> machine. If I load up XLOADCT, the color table gets refreshed neither
> on the color band on the top, nor on the image I want to change the
> color table for. This even happens in the demo! On our Windows NT
> 4.0 machine on the other hand, XLOADCT behaves perfectly normally,
> from the prompt or in the demo.

Are you running the Win 95 machine at > 256 colours?

If IDL for Windows is run with the display set at > 256 colours, colours in
plot
windows are not affected by changes in the colour tables until the window
is redrawn.
I understand from a recent thread that this occurs with the Macintosh & X
Windows
Manager also.

I don't know of a work-around, except to reduce the colour depth on your
system (and
lose those lovely full-colour icons!). Under Mac and X, PSEUDO_COLOR
keyword to DEVICE
might affect this behaviour, but this keyword is not available for the WIN
device.

============================================================ ==
Mark Hadfield NIWA (Taihoro Nukurangi)
PO Box 14-901
m.hadfield@niwa.cri.nz Wellington, New Zealand
Re: XLOADCT under Windows 95 vs. Windows NT 4.0 [message #7182 is a reply to message #7167] Sun, 06 October 1996 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Imad Jureidini <imad@mit.edu> writes:

> I'm having this strange problem using XLOADCT on our Windows 95
> machine. If I load up XLOADCT, the color table gets refreshed neither
> on the color band on the top, nor on the image I want to change the
> color table for. This even happens in the demo! On our Windows NT
> 4.0 machine on the other hand, XLOADCT behaves perfectly normally,
> from the prompt or in the demo.
>
> Does anybody have any ideas? Thanks a lot!

This is the classic symptom of running your Windows 95 machine in
either 16-bit or 24-bit color mode. In either of these modes you have
to redisplay your graphic window to see the effect of the color changes.

For example, like this:

; Load a gray-scale color table and display the image.

LOADCT, 0
TVSCL, DIST(300,400)

; Load a red-temperature color table and re-display the image.

LOADCT, 3
TVSCL, DIST(300,400)

To restore your Windows NT behavior, use your monitor control panel to
configure your monitor for 8-bit (256 color) mode.

David

--
David Fanning, Ph.D.
Phone: 970-221-0438
Fax: 970-221-4728
E-Mail: davidf@fortnet.org
Re: XLOADCT under Windows 95 vs. Windows NT 4.0 [message #7184 is a reply to message #7182] Sun, 06 October 1996 00:00 Go to previous message
Markus Heuer is currently offline  Markus Heuer
Messages: 3
Registered: March 1996
Junior Member
> Hi,
>
> I'm having this strange problem using XLOADCT on our Windows 95
> machine. If I load up XLOADCT, the color table gets refreshed neither
> on the color band on the top, nor on the image I want to change the
> color table for. This even happens in the demo! On our Windows NT
> 4.0 machine on the other hand, XLOADCT behaves perfectly normally.
> Imad Jureidini
> imad@mit.edu
> PS: We're running IDL 4.0.1 on both machines.

Dear Imad

on my Windows95 machine XLOADCT works fine. However, on another
machine running Windows 3.11, I experienced a similar problem
with IDL 4.0.1: plots simply didn't show up. It turned out that
the graphics driver was configured to 16 instead of 256 colors. Thus
you might check the Windows95 graphics setup (number of colors
and graphics adapter driver).

Cheers

Markus Heuer
Berne, Switzerland
heumar@thenet.ch
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: controlling font size within a title
Next Topic: Re: help: !p.multi switched off?

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

Current Time: Wed Oct 08 17:40:31 PDT 2025

Total time taken to generate the page: 0.00553 seconds