|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object smithers.extras.BltComposite
public class BltComposite
Implementation of the Composite
interface which provides the 16
standard blting operations.
Field Summary | |
---|---|
static int |
OP_AND
Operation constant for src & dst . |
static int |
OP_AND_NOT
Operation constant for src & ~dst . |
static int |
OP_CLEAR
Operation constant for 0 (clear). |
static int |
OP_COPY
Operation constant for src . |
static int |
OP_EQUIV
Operation constant for ~(src ^ dst) . |
static int |
OP_NAND
Operation constant for ~(src & dst) . |
static int |
OP_NOOP
Operation constant for dst . |
static int |
OP_NOR
Operation constant for ~(src | dst) . |
static int |
OP_NOT
Operation constant for ~dst . |
static int |
OP_NOT_AND
Operation constant for ~src & dst . |
static int |
OP_NOT_COPY
Operation constant for ~src . |
static int |
OP_NOT_OR
Operation constant for ~src | dst . |
static int |
OP_OR
Operation constant for src | dst . |
static int |
OP_OR_NOT
Operation constant for src | ~dst . |
static int |
OP_SET
Operation constant for 1 (set). |
static int |
OP_XOR
Operation constant for src ^ dst . |
Constructor Summary | |
---|---|
BltComposite(int op,
int bandMask)
Creates a new BltComposite with a given operation. |
Method Summary | |
---|---|
java.awt.CompositeContext |
createContext(java.awt.image.ColorModel srcColorModel,
java.awt.image.ColorModel dstColorModel,
java.awt.RenderingHints hints)
Creates a context for compositing. |
static void |
main(java.lang.String[] args)
Tester. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int OP_CLEAR
0
(clear).
public static int OP_AND
src & dst
.
public static int OP_AND_NOT
src & ~dst
.
public static int OP_COPY
src
.
public static int OP_NOT_AND
~src & dst
.
public static int OP_NOOP
dst
.
public static int OP_XOR
src ^ dst
.
public static int OP_OR
src | dst
.
public static int OP_NOR
~(src | dst)
.
public static int OP_EQUIV
~(src ^ dst)
.
public static int OP_NOT
~dst
.
public static int OP_OR_NOT
src | ~dst
.
public static int OP_NOT_COPY
~src
.
public static int OP_NOT_OR
~src | dst
.
public static int OP_NAND
~(src & dst)
.
public static int OP_SET
1
(set).
Constructor Detail |
---|
public BltComposite(int op, int bandMask)
BltComposite
with a given operation.
op
- the operation to performbandMask
- the band mask to apply (unmasked bands will remain
unchanged in the destination image)Method Detail |
---|
public java.awt.CompositeContext createContext(java.awt.image.ColorModel srcColorModel, java.awt.image.ColorModel dstColorModel, java.awt.RenderingHints hints)
createContext
in interface java.awt.Composite
srcColorModel
- ignoreddstColorModel
- ignoredhints
- ignored
public static void main(java.lang.String[] args) throws java.io.IOException
args[0]
and another from
args[1]
and copies the former over the latter using each
operation of this class. Saves the results as "0.png"
to "15.png"
.
args
- the arguments
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |