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

Home » Public Forums » archive » Re: transparent background
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: transparent background [message #35366 is a reply to message #35283] Thu, 05 June 2003 11:29 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"David Fanning" wrote in message ...
> Rick Towler writes:
>
>> FWIW, I can create an image with a transparent background with one step
and
>> a PC :)
>
> Well, how was that done? Because I didn't have any luck
> at all fooling around with it the other day for 15-20 minutes.

You didn't really fool around for 20 minutes, did you?


With the B/W linear color table loaded:

IDL> test = BYTARR(200,200)
IDL> test[100:199,*] = 200
IDL> tvlct, r,g,b,/get
IDL> write_png,'test.png',test,r,g,b,TRANSPARENT=[0]


In PP, Insert -> Picture -> From File... and select 'test.png'

I have a 200x200 image, right half is lt. gray, left half is transparent.

Load test.png up in Photoshop and the left half of the image is transparent
too.

-r
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: vfw for idl
Next Topic: vfw for idl

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

Current Time: Sat Oct 11 05:36:27 PDT 2025

Total time taken to generate the page: 0.32027 seconds