9 Nov 2011

Add Transparency to JPEG - Yes, We Can!



...Just read in your JPEG and add an alpha channel manually, then assign values for transparency. Of course for printing you need to use a device that accepts alpha.

See how it's done HERE.

3 comments :

  1. Nice post! In order to make your code more platform-independent you can import the Rlogo.jpg image using:

    img <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))

    ReplyDelete
  2. thanks for share it.

    ReplyDelete