Class SignednessUtilExtra
java.lang.Object
org.checkerframework.checker.signedness.util.SignednessUtilExtra
Provides more static utility methods for unsigned values. These methods use Java packages not
included in Android.
SignednessUtil has more methods that can be used anywhere, whereas
SignednessUtilExtra can be used anywhere except on Android.
- See the Checker Framework Manual:
- Utility routines for manipulating unsigned values
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Unsigned intGets the unsigned height of aDimension.static @Unsigned intGets the unsigned width of aDimension.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 voidsetUnsignedRGB(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.
-
Method Details
-
dimensionUnsignedWidth
-
dimensionUnsignedHeight
-
setUnsignedRGB
public 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. This method is a wrapper aroundsetRGB(int, int, int, int, int[], int, int), but assumes that the input should be interpreted as unsigned. -
getUnsignedRGB
public 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. This method is a wrapper aroundgetRGB(int, int, int, int, int[], int, int), but assumes that the output should be interpreted as unsigned.
-