blending
Class GrainMergeBlendingContext

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

public class GrainMergeBlendingContext
extends BlendingContext

Grain Merge mode merges a grain layer into the current layer, leaving a grainy version of the original layer. It adds the pixel values of the upper and lower layers together and subtracts 128.

The equation is: R = B + T - 128


Constructor Summary
GrainMergeBlendingContext()
           
 
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

GrainMergeBlendingContext

public GrainMergeBlendingContext()
Method Detail

applyBlending

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