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
FieldsModifier and TypeFieldDescriptionstatic final int
dst=dst+srcstatic final int
dst=dst AND srcstatic final int
dst=(dst+src)/2static final int
dst=srcstatic final int
dst=255-src (8-bits and RGB)static final int
Copies with white pixels transparent.static final int
Copies with zero pixels transparent.static final int
dst=abs(dst-src)static final int
dst=dst/srcstatic final int
dst=max(dst,src)static final int
dst=min(dst,src)static final int
dst=src*srcstatic final int
dst=dst OR srcstatic final int
dst=dst-srcstatic final int
dst=dst XOR src -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyBits
(ImageProcessor src, int x, int y, int mode) Copies the image in 'src' to (x,y) using the specified mode.void
Sets the transparent color used in the COPY_TRANSPARENT mode (default is Color.white).
-
Field Details
-
COPY
static final int COPYdst=src- See Also:
-
COPY_INVERTED
static final int COPY_INVERTEDdst=255-src (8-bits and RGB)- See Also:
-
COPY_TRANSPARENT
static final int COPY_TRANSPARENTCopies with white pixels transparent.- See Also:
-
ADD
static final int ADDdst=dst+src- See Also:
-
SUBTRACT
static final int SUBTRACTdst=dst-src- See Also:
-
MULTIPLY
static final int MULTIPLYdst=src*src- See Also:
-
DIVIDE
static final int DIVIDEdst=dst/src- See Also:
-
AVERAGE
static final int AVERAGEdst=(dst+src)/2- See Also:
-
DIFFERENCE
static final int DIFFERENCEdst=abs(dst-src)- See Also:
-
AND
static final int ANDdst=dst AND src- See Also:
-
OR
static final int ORdst=dst OR src- See Also:
-
XOR
static final int XORdst=dst XOR src- See Also:
-
MIN
static final int MINdst=min(dst,src)- See Also:
-
MAX
static final int MAXdst=max(dst,src)- See Also:
-
COPY_ZERO_TRANSPARENT
static final int COPY_ZERO_TRANSPARENTCopies with zero pixels transparent.- See Also:
-
-
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.
-