PulpCore

pulpcore.image
Class BlendMode

java.lang.Object
  extended by pulpcore.image.BlendMode

public final class BlendMode
extends Object

An enumeration of blend modes.

The methods always returns the same object; that is, BlendMode.SrcOver() == BlendMode.SrcOver() is always true.

The BlendMode class is designed for lazy-creation of blend modes so that code shrinkers (ProGuard) can remove blend modes that an app does not use.

See Also:
CoreGraphics.setBlendMode(BlendMode), Sprite.setBlendMode(BlendMode)

Method Summary
static BlendMode Add()
          Gets the Add blend mode.
static BlendMode Multiply()
          Gets the Multiply blend mode.
static BlendMode SrcOver()
          Gets the SrcOver blend mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

SrcOver

public static BlendMode SrcOver()
Gets the SrcOver blend mode. The source is composited over the destination (Porter-Duff Source Over Destination rule). This is the default blend mode.


Add

public static BlendMode Add()
Gets the Add blend mode. Color components from the source are added to those of the surface.


Multiply

public static BlendMode Multiply()
Gets the Multiply blend mode. Color components from the source are multiplied by those of the surface.


PulpCore

Copyright © 2007-2008 Interactive Pulp, LLC.