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

Home » Public Forums » archive » write_png
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: write_PNG [message #40987 is a reply to message #28652] Fri, 17 September 2004 08:18 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> If I remember right, it's not really an 8-bit or 24-bit issue. It's
> that WRITE_PNG expects the image to be interleaved over the first
> dimension. I usually interleave 24-bit images over the 3rd dimension,
> so I have to remember to set TRUE = 1 in TVRD.
>
> I don't have an 8-bit display to test it with. Is TRUE = 1 ignored in
> that case?

I really don't know if it's ignored or not.

My 8-bit vs 24-bit comment was based on the documentation in TVRead.
One thing I had forgotten about TVRead() is that a file output option is
included, so just one call to TVRead() will be able to read the display
and write an image file.

--- From the documentation ---

To get accurate screen dumps with the IDL command TVRD on 24-bit PC and
Macintosh computers, you have to be sure to set color decomposition on.
This program adds that capability automatically. In addition, the
program will optionally write BMP, GIF, JPEG, PICT, PNG, and TIFF color
image files of the screen dump.

image = TVREAD(xstart, ystart, ncols, nrows)

The returned image will be a 2D image on 8-bit systems and a 24-bit
pixel interleaved true-color image on 24-bit systems.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help displaying live video
Next Topic: Re: Greetings From Munich

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

Current Time: Tue Dec 02 07:07:14 PST 2025

Total time taken to generate the page: 2.56326 seconds