Right, this isn't ideal because the transparency is discretely expressed as 
either white or nothing. I'd rather have a gradient of opacity (just like 
any other color, 256 levels?). 

On Tuesday, June 24, 2014 3:14:29 PM UTC+10, Yakir Gagnon wrote:
>
> Just as an alternative, one cold post process the imae with imagemagick. 
> The trick is to code the image with the colormap so that the transparent 
> part will be white and:
>
> run(`convert name.png -transparent white name.png`)
>
>
>
> On Tuesday, June 24, 2014 3:00:44 PM UTC+10, Yakir Gagnon wrote:
>>
>> 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!
>>
>

Reply via email to