Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Blitter Interface Reference
Inheritance diagram for Blitter:
ByteBlitter ColorBlitter FloatBlitter ShortBlitter

Public Member Functions

void setTransparentColor (Color c)
 
void copyBits (ImageProcessor src, int x, int y, int mode)
 

Static Public Attributes

static final int COPY = 0
 
static final int COPY_INVERTED = 1
 
static final int COPY_TRANSPARENT = 2
 
static final int ADD = 3
 
static final int SUBTRACT = 4
 
static final int MULTIPLY = 5
 
static final int DIVIDE = 6
 
static final int AVERAGE = 7
 
static final int DIFFERENCE = 8
 
static final int AND = 9
 
static final int OR = 10
 
static final int XOR = 11
 
static final int MIN = 12
 
static final int MAX = 13
 

Detailed Description

ImageJ bit blitting classes must implement this interface.

Definition at line 5 of file Blitter.java.

Member Function Documentation

void copyBits ( ImageProcessor  src,
int  x,
int  y,
int  mode 
)

Copies the image in 'src' to (x,y) using the specified mode.

Implemented in FloatBlitter, ByteBlitter, ColorBlitter, and ShortBlitter.

void setTransparentColor ( Color  c)

Sets the transparent color used in the COPY_TRANSPARENT mode (default is Color.white).

Implemented in FloatBlitter, ColorBlitter, ByteBlitter, and ShortBlitter.

Field Documentation

final int ADD = 3
static

dst=dst+src

Definition at line 17 of file Blitter.java.

final int AND = 9
static

dst=dst AND src

Definition at line 35 of file Blitter.java.

final int AVERAGE = 7
static

dst=(dst+src)/2

Definition at line 29 of file Blitter.java.

final int COPY = 0
static

dst=src

Definition at line 8 of file Blitter.java.

final int COPY_INVERTED = 1
static

dst=255-src (8-bits and RGB)

Definition at line 11 of file Blitter.java.

final int COPY_TRANSPARENT = 2
static

Copies with white pixels transparent.

Definition at line 14 of file Blitter.java.

final int DIFFERENCE = 8
static

dst=abs(dst-src)

Definition at line 32 of file Blitter.java.

final int DIVIDE = 6
static

dst=dst/src

Definition at line 26 of file Blitter.java.

final int MAX = 13
static

dst=max(dst,src)

Definition at line 47 of file Blitter.java.

final int MIN = 12
static

dst=min(dst,src)

Definition at line 44 of file Blitter.java.

final int MULTIPLY = 5
static

dst=src*src

Definition at line 23 of file Blitter.java.

final int OR = 10
static

dst=dst OR src

Definition at line 38 of file Blitter.java.

final int SUBTRACT = 4
static

dst=dst-src

Definition at line 20 of file Blitter.java.

final int XOR = 11
static

dst=dst XOR src

Definition at line 41 of file Blitter.java.


The documentation for this interface was generated from the following file: