Class PixelUtils
java.lang.Object
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.PixelUtils
Some more useful math functions for image processing.
These are becoming obsolete as we move to Java2D. Use MiscComposite instead.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
brightness
(int rgb) static int
clamp
(int c) Clamp a value to the range 0..255.static int
combinePixels
(int rgb1, int rgb2, int op) static int
combinePixels
(int rgb1, int rgb2, int op, int extraAlpha) static int
combinePixels
(int rgb1, int rgb2, int op, int extraAlpha, int channelMask) static int
interpolate
(int v1, int v2, float f) static boolean
nearColors
(int rgb1, int rgb2, int tolerance)
-
Field Details
-
REPLACE
- See Also:
-
NORMAL
- See Also:
-
MIN
- See Also:
-
MAX
- See Also:
-
ADD
- See Also:
-
SUBTRACT
- See Also:
-
DIFFERENCE
- See Also:
-
MULTIPLY
- See Also:
-
HUE
- See Also:
-
SATURATION
- See Also:
-
VALUE
- See Also:
-
COLOR
- See Also:
-
SCREEN
- See Also:
-
AVERAGE
- See Also:
-
OVERLAY
- See Also:
-
CLEAR
- See Also:
-
EXCHANGE
- See Also:
-
DISSOLVE
- See Also:
-
DST_IN
- See Also:
-
ALPHA
- See Also:
-
ALPHA_TO_GRAY
- See Also:
-
-
Constructor Details
-
PixelUtils
public PixelUtils()
-
-
Method Details
-
clamp
Clamp a value to the range 0..255.- Parameters:
c
- the input integer.- Returns:
- the output integer.
-
interpolate
-
brightness
-
nearColors
-
combinePixels
-
combinePixels
-
combinePixels
-