Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Yakir Gagnon
Thank you so much! On Wednesday, June 25, 2014 3:10:28 AM UTC+10, Tim Holy wrote: > > convert(Image, img) > > where img is your ImageCmap > > --Tim > > On Tuesday, June 24, 2014 05:13:20 AM Yakir Gagnon wrote: > > Great! I didn't know it was that simple, but if I have an indexed image > I >

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Tim Holy
convert(Image, img) where img is your ImageCmap --Tim On Tuesday, June 24, 2014 05:13:20 AM Yakir Gagnon wrote: > Great! I didn't know it was that simple, but if I have an indexed image I > created with ImageCmap, how would I first convert it to a direct image so > that I'll be able to concatena

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Yakir Gagnon
Great! I didn't know it was that simple, but if I have an indexed image I created with ImageCmap, how would I first convert it to a direct image so that I'll be able to concatenate the alpha layer? On Tuesday, June 24, 2014 9:30:00 PM UTC+10, Tim Holy wrote: > > If your image has transparency, t

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Tim Holy
If your image has transparency, then imwrite(I, "name.png") should Just Work. There are many ways to get an image with transparency: for example, you might load one from disk. If you want to construct one "from scratch," here's a demo: A = rand(100, 128, 4);# random colors

[julia-users] Images imwrite PNG with Alpha transparency

2014-06-23 Thread Yakir Gagnon
How, if possible, can I imwrite a PNG image that has transparency in it? I'm assuming something like: using Images imwrite( I,"name.png",alpha=A) Thanks!