Package ij.process
Interface Blitter
- All Known Implementing Classes:
ByteBlitter
,ColorBlitter
,FloatBlitter
,ShortBlitter
public interface Blitter
ImageJ bit blitting classes must implement this interface.
-
Field Summary
Fields Modifier and Type Field Description static int
ADD
dst=dst+srcstatic int
AND
dst=dst AND srcstatic int
AVERAGE
dst=(dst+src)/2static int
COPY
dst=srcstatic int
COPY_INVERTED
dst=255-src (8-bits and RGB)static int
COPY_TRANSPARENT
Copies with white pixels transparent.static int
COPY_ZERO_TRANSPARENT
Copies with zero pixels transparent.static int
DIFFERENCE
dst=abs(dst-src)static int
DIVIDE
dst=dst/srcstatic int
MAX
dst=max(dst,src)static int
MIN
dst=min(dst,src)static int
MULTIPLY
dst=src*srcstatic int
OR
dst=dst OR srcstatic int
SUBTRACT
dst=dst-srcstatic int
XOR
dst=dst XOR src -
Method Summary
Modifier and Type Method Description void
copyBits(ImageProcessor src, int x, int y, int mode)
Copies the image in 'src' to (x,y) using the specified mode.void
setTransparentColor(Color c)
Sets the transparent color used in the COPY_TRANSPARENT mode (default is Color.white).
-
Field Details
-
COPY
static final int COPYdst=src- See Also:
- Constant Field Values
-
COPY_INVERTED
static final int COPY_INVERTEDdst=255-src (8-bits and RGB)- See Also:
- Constant Field Values
-
COPY_TRANSPARENT
static final int COPY_TRANSPARENTCopies with white pixels transparent.- See Also:
- Constant Field Values
-
ADD
static final int ADDdst=dst+src- See Also:
- Constant Field Values
-
SUBTRACT
static final int SUBTRACTdst=dst-src- See Also:
- Constant Field Values
-
MULTIPLY
static final int MULTIPLYdst=src*src- See Also:
- Constant Field Values
-
DIVIDE
static final int DIVIDEdst=dst/src- See Also:
- Constant Field Values
-
AVERAGE
static final int AVERAGEdst=(dst+src)/2- See Also:
- Constant Field Values
-
DIFFERENCE
static final int DIFFERENCEdst=abs(dst-src)- See Also:
- Constant Field Values
-
AND
static final int ANDdst=dst AND src- See Also:
- Constant Field Values
-
OR
static final int ORdst=dst OR src- See Also:
- Constant Field Values
-
XOR
static final int XORdst=dst XOR src- See Also:
- Constant Field Values
-
MIN
static final int MINdst=min(dst,src)- See Also:
- Constant Field Values
-
MAX
static final int MAXdst=max(dst,src)- See Also:
- Constant Field Values
-
COPY_ZERO_TRANSPARENT
static final int COPY_ZERO_TRANSPARENTCopies with zero pixels transparent.- See Also:
- Constant Field Values
-
-
Method Details
-
setTransparentColor
Sets the transparent color used in the COPY_TRANSPARENT mode (default is Color.white). -
copyBits
Copies the image in 'src' to (x,y) using the specified mode.
-