Re: JPEG image dimensions [message #55996] |
Wed, 26 September 2007 09:33 |
Rob.Dimeo
Messages: 21 Registered: September 2007
|
Junior Member |
|
|
On Sep 26, 12:29 pm, David Fanning <n...@dfanning.com> wrote:
> Rob.Di...@gmail.com writes:
>> This seems like a simple task that I should know how to do but it's
>> giving me some trouble.
>
>> I have a JPEG file that has the following dimensions: (4,179,90)
>> I'm having difficulties viewing this with TV and David's TVIMAGE.
>
>> IDL> read_jpeg,file,img,/true
>> IDL> help,img
>
>> IMG BYTE = Array[4, 179, 90]
>
>> Any suggestions?
>
> It sounds like that could be a 24-bit image with an alpha
> channel. Here is an article that describes how to display
> such an image in IDL:
>
> http://www.dfanning.com/ip_tips/transparentpng.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks David!
|
|
|
Re: JPEG image dimensions [message #55997 is a reply to message #55996] |
Wed, 26 September 2007 09:29  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Rob.Dimeo@gmail.com writes:
> This seems like a simple task that I should know how to do but it's
> giving me some trouble.
>
> I have a JPEG file that has the following dimensions: (4,179,90)
> I'm having difficulties viewing this with TV and David's TVIMAGE.
>
> IDL> read_jpeg,file,img,/true
> IDL> help,img
>
> IMG BYTE = Array[4, 179, 90]
>
> Any suggestions?
It sounds like that could be a 24-bit image with an alpha
channel. Here is an article that describes how to display
such an image in IDL:
http://www.dfanning.com/ip_tips/transparentpng.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|