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

Home » Public Forums » archive » write_png weirdness
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
write_png weirdness [message #51524] Thu, 23 November 2006 01:01
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Hello,

I noticed that in IDL 6.1.1 there is some weirdness related to the write_png
procedure. I have true colour image like
>print,size(hhh)
> 3 3 640 512 1 983040
which I want to save as a negative. However,

write_png,'file',255-hhh

results in a PNG file which is just black while

write_png,'file',byte(255-hhh)

does the right thing. This seems a bit strange since both, hhh and 255 are of
type byte, and so should be the difference (without forcing it).

regards,

Bringfried Stecklum
  • Attachment: stecklum.vcf
    (Size: 0.20KB, Downloaded 70 times)
[Message index]
 
Read Message
Previous Topic: 'from lon-lat to TM' source code?
Next Topic: Is it really more efficient to work with arrays than FOR loops?

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

Current Time: Wed Oct 08 20:18:57 PDT 2025

Total time taken to generate the page: 0.08290 seconds