@AnnotatedFor(value="nullness") public class SignednessUtilExtra extends Object
SignednessUtil
has more methods that can be used anywhere, whereas SignednessUtilExtra
can be used anywhere except on Android.
Modifier and Type | Method and Description |
---|---|
static @Unsigned int |
dimensionUnsignedHeight(Dimension dim)
Gets the unsigned height of a
Dimension . |
static @Unsigned int |
dimensionUnsignedWidth(Dimension dim)
Gets the unsigned width of a
Dimension . |
static @Unsigned int[] |
getUnsignedRGB(BufferedImage b,
int startX,
int startY,
int w,
int h,
@Unsigned int[] rgbArray,
int offset,
int scansize)
Gets rgb of BufferedImage b as unsigned ints.
|
static void |
setUnsignedRGB(BufferedImage b,
int startX,
int startY,
int w,
int h,
@Unsigned int[] rgbArray,
int offset,
int scansize)
Sets rgb of BufferedImage b given unsigned ints.
|
public static @Unsigned int dimensionUnsignedWidth(Dimension dim)
Dimension
.public static @Unsigned int dimensionUnsignedHeight(Dimension dim)
Dimension
.public static void setUnsignedRGB(BufferedImage b, int startX, int startY, int w, int h, @Unsigned int[] rgbArray, int offset, int scansize)
setRGB(int, int, int,
int, int[], int, int)
, but assumes that the input should be interpreted as unsigned.public static @Unsigned int[] getUnsignedRGB(BufferedImage b, int startX, int startY, int w, int h, @Unsigned int[] rgbArray, int offset, int scansize)
getRGB(int, int, int,
int, int[], int, int)
, but assumes that the output should be interpreted as unsigned.