blending 2 images

Discussion in 'Java' started by JavaJug, Jun 3, 2004.

  1. JavaJug

    JavaJug Guest

    Hello there !
    I've never done complex image manipulation in Java and would need to create a
    new image that is a mix between 2 other images, in which the value of each pixel
    would be for instance 0.3 times the value of the same pixel in the 1st image and
    0.7 times the value of the pixel in the 2nd one.
    Should I use an alpha channel to do it ?
    Is there a quick way to do it ? it's to add an effect in an applet (
    http://www.chez.com/fuzzyghost/java/roserain/Rose.html I'd like to add a trail
    on the falling flowers)

    THX !
     
    JavaJug, Jun 3, 2004
    #1
    1. Advertising

  2. "JavaJug" <> schreef in bericht
    news:c9mo2n$p09$...
    > Hello there !
    > I've never done complex image manipulation in Java and would need to

    create a
    > new image that is a mix between 2 other images, in which the value of each
    > pixel would be for instance 0.3 times the value of the same pixel in the

    1st
    > image and 0.7 times the value of the pixel in the 2nd one.
    > Should I use an alpha channel to do it ?
    > Is there a quick way to do it ? it's to add an effect in an applet (
    > http://www.chez.com/fuzzyghost/java/roserain/Rose.html I'd like to add a
    > trail on the falling flowers)


    implement java.awt.image.RGBImageFilter
     
    Boudewijn Dijkstra, Jun 3, 2004
    #2
    1. Advertising

  3. JavaJug wrote:
    > Hello there !
    > I've never done complex image manipulation in Java and would need to
    > create a new image that is a mix between 2 other images, in which the
    > value of each pixel would be for instance 0.3 times the value of the
    > same pixel in the 1st image and 0.7 times the value of the pixel in the
    > 2nd one.


    Check out AlphaComposite.

    /Thomas

    BTW: There is a separate newsgroup for GUI questions.
     
    Thomas Weidenfeller, Jun 4, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Burgess

    Video blending

    David Burgess, Oct 22, 2003, in forum: Java
    Replies:
    0
    Views:
    370
    David Burgess
    Oct 22, 2003
  2. AJ
    Replies:
    0
    Views:
    416
  3. Ixon

    ALPHA-BLENDING ??

    Ixon, Nov 25, 2003, in forum: HTML
    Replies:
    7
    Views:
    2,586
  4. Gabriele Farina *DarkBard*
    Replies:
    3
    Views:
    1,074
    Greg Ewing
    Jul 1, 2004
  5. Gernot Frisch

    fast alpha blending with 565RGB

    Gernot Frisch, Feb 20, 2007, in forum: C++
    Replies:
    3
    Views:
    1,977
    Gernot Frisch
    Feb 21, 2007
Loading...

Share This Page