Re: Transparent background with PNG
- To: mathgroup at smc.vnet.net
- Subject: [mg96912] Re: Transparent background with PNG
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 27 Feb 2009 06:11:52 -0500 (EST)
- Organization: Uni Leipzig
- References: <gnm1o0$hgg$1@smc.vnet.net> <go63ui$q3v$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
img = Rasterize[Plot[Sin[x], {x, 0, 2 Pi}], "Image"];
and
timg = ImageApply[
If[Sqrt[#.#] &[# - {1, 1, 1}] < $MachineEpsilon, Append[#, 0],
Append[#, 1]] &, img]
has an alpha channel.
Regards
Jens
replicatorzed at gmail.com wrote:
> No idea?
>