Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

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?
> 


  • Prev by Date: Re: Difference Fit vs. Correlation
  • Next by Date: Re: lock image size in a cell
  • Previous by thread: Re: Transparent background with PNG
  • Next by thread: Re: Transparent background with PNG