blending
Class MultiplyBlendingContext

java.lang.Object
  extended by blending.BlendingContext
      extended by blending.MultiplyBlendingContext
All Implemented Interfaces:
java.awt.CompositeContext

public class MultiplyBlendingContext
extends BlendingContext

Multiply mode multiplies the pixel values of the upper layer with those of the layer below it and then divides the result by 255. The result is usually a darker image.

The equation is: R = T × B ÷ 255


Constructor Summary
MultiplyBlendingContext()
           
 
Method Summary
 int[] applyBlending(int[] srcPixel, int[] dstPixel)
           
 
Methods inherited from class blending.BlendingContext
compose, dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplyBlendingContext

public MultiplyBlendingContext()
Method Detail

applyBlending

public int[] applyBlending(int[] srcPixel,
                           int[] dstPixel)
Specified by:
applyBlending in class BlendingContext