playn.java
Class BlendComposite

java.lang.Object
  extended by playn.java.BlendComposite
All Implemented Interfaces:
Composite

public class BlendComposite
extends Object
implements Composite

Handles non-Porter-Duff image composition.


Nested Class Summary
protected static class BlendComposite.Blender
           
 
Field Summary
static BlendComposite Multiply
          A blend composite that yields [ Sa * Da, Sc * Dc].
 
Constructor Summary
protected BlendComposite(BlendComposite.Blender blender)
           
protected BlendComposite(BlendComposite.Blender blender, float alpha)
           
 
Method Summary
 CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
           
 BlendComposite derive(float alpha)
          Returns a derived composite with the specified alpha.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Multiply

public static final BlendComposite Multiply
A blend composite that yields [ Sa * Da, Sc * Dc].

Constructor Detail

BlendComposite

protected BlendComposite(BlendComposite.Blender blender)

BlendComposite

protected BlendComposite(BlendComposite.Blender blender,
                         float alpha)
Method Detail

derive

public BlendComposite derive(float alpha)
Returns a derived composite with the specified alpha.


createContext

public CompositeContext createContext(ColorModel srcColorModel,
                                      ColorModel dstColorModel,
                                      RenderingHints hints)
Specified by:
createContext in interface Composite


Copyright © 2013. All Rights Reserved.