public class Pixel
extends java.lang.Object
Constructor and Description |
---|
Pixel(int x,
int y,
int argb) |
Pixel(int x,
int y,
int r,
int g,
int b,
int alpha) |
Modifier and Type | Method and Description |
---|---|
int |
alpha() |
int |
average() |
int |
blue() |
boolean |
equals(java.lang.Object o) |
int |
green() |
int |
hashCode() |
Pixel |
mapByComponent(java.util.function.Function<java.lang.Integer,java.lang.Integer> f) |
int |
red() |
int[] |
toARGB()
Returns this pixel as an array of ARGB values.
|
int |
toARGBInt()
Returns this pixel as a packed ARGB int.
|
RGBColor |
toColor() |
int |
toInt()
Deprecated.
|
int[] |
toRGB()
Returns this pixel as an array of RGB values, ignoring any alpha value.
|
java.lang.String |
toString() |
int |
x() |
int |
y() |
public Pixel(int x, int y, int argb)
public Pixel(int x, int y, int r, int g, int b, int alpha)
public int alpha()
public int red()
public int green()
public int blue()
public int average()
public int x()
public int y()
@Deprecated public int toInt()
public int toARGBInt()
public int[] toARGB()
public int[] toRGB()
public RGBColor toColor()
public Pixel mapByComponent(java.util.function.Function<java.lang.Integer,java.lang.Integer> f)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object