| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BufferedImage | Returns: the image representation of the bitmapthe given bitmap bitmap)Returns the given bitmap as buffered image. |
| public static BufferedImage | Returns: the image representation of the bitmapthe given bitmap bitmap, FilterType type of filter which is used when creating the buffered image filterType)Returns the given bitmap as buffered image. |
| public static BufferedImage | Returns: the image representation of the bitmapthe given bitmap bitmap, ImageReadParam ImageReadParam to be used when creating the buffered image param, FilterType type of filter which is used when creating the buffered image filterType)Returns the given bitmap as buffered image. |
| public static WritableRaster | |
| public static WritableRaster | Returns: the raster representation of the bitmapthe given bitmap bitmap, final FilterType type of filter which is used when creating the writable raster filterType)Returns the given bitmap as writable raster. |
| public static WritableRaster | Returns: the raster representation of the bitmapthe given bitmap bitmap, final ImageReadParam ImageReadParam to be used when creating the writable raster param, final FilterType type of filter which is used when creating the writable raster filterType)Returns the given bitmap as writable raster. |
| public static void | blit(Bitmap
- The bitmap that should be combined with the one of the current instance. src, Bitmap - The destination bitmap. dst, int - The x coordinate where the upper left corner of the bitmap to blit should be positioned. x, int - The y coordinate where the upper left corner of the bitmap to blit should be positioned. y, CombinationOperator - The combination operator for combining two pixels. combinationOperator)This method combines a given bitmap with the current instance. |
| private static void | blitShifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, int toShift, int shiftVal1, int shiftVal2, CombinationOperator op, int padding)
|
| private static void | blitSpecialShifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, int toShift, int shiftVal1, int shiftVal2, CombinationOperator op)
|
| private static void | blitUnshifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, CombinationOperator op)
|
| private static WritableRaster | buildRaster(final Bitmap bitmap, final FilterType filterType, final double scaleX, final double scaleY)
|
| public static byte | Returns: The combination result.- The value that should be combined with value2. value1, byte - The value that should be combined with value1. value2, CombinationOperator - The specified combination operator. op)The method combines two given bytes with an logical operator. |
| private static void | |
| public static Bitmap | |
| public static Bitmap | |
| public static Bitmap | |
| public static Bitmap | |
| private static byte | Returns: A cleaned byte.- The amount of unnecessary bits. padding, byte - The byte that should be cleaned up. value)Removes unnecessary bits from a byte. |
| Bitmaps | back to summary |
|---|---|
| public Bitmaps() | |
| asBufferedImage | back to summary |
|---|---|
| public static BufferedImage asBufferedImage(Bitmap bitmap) Returns the given bitmap as buffered image.
| |
| asBufferedImage | back to summary |
|---|---|
| public static BufferedImage asBufferedImage(Bitmap bitmap, FilterType filterType) Returns the given bitmap as buffered image.
| |
| asBufferedImage | back to summary |
|---|---|
| public static BufferedImage asBufferedImage(Bitmap bitmap, ImageReadParam param, FilterType filterType) Returns the given bitmap as buffered image.
| |
| asRaster | back to summary |
|---|---|
| public static WritableRaster asRaster(final Bitmap bitmap) Returns the given bitmap as writable raster.
| |
| asRaster | back to summary |
|---|---|
| public static WritableRaster asRaster(final Bitmap bitmap, final FilterType filterType) Returns the given bitmap as writable raster.
| |
| asRaster | back to summary |
|---|---|
| public static WritableRaster asRaster(Bitmap bitmap, final ImageReadParam param, final FilterType filterType) Returns the given bitmap as writable raster.
| |
| blit | back to summary |
|---|---|
| public static void blit(Bitmap src, Bitmap dst, int x, int y, CombinationOperator combinationOperator) This method combines a given bitmap with the current instance. Parts of the bitmap to blit that are outside of the target bitmap will be ignored.
| |
| blitShifted | back to summary |
|---|---|
| private static void blitShifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, int toShift, int shiftVal1, int shiftVal2, CombinationOperator op, int padding) | |
| blitSpecialShifted | back to summary |
|---|---|
| private static void blitSpecialShifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, int toShift, int shiftVal1, int shiftVal2, CombinationOperator op) | |
| blitUnshifted | back to summary |
|---|---|
| private static void blitUnshifted(Bitmap src, Bitmap dst, int startLine, int lastLine, int dstStartIdx, int srcStartIdx, int srcEndIdx, CombinationOperator op) | |
| buildRaster | back to summary |
|---|---|
| private static WritableRaster buildRaster(final Bitmap bitmap, final FilterType filterType, final double scaleX, final double scaleY) | |
| combineBytes | back to summary |
|---|---|
| public static byte combineBytes(byte value1, byte value2, CombinationOperator op) The method combines two given bytes with an logical operator.
The JBIG2 Standard specifies 5 possible combinations of bytes. Hint: Please take a look at ISO/IEC 14492:2001 (E) for detailed definition and description of the operators.
| |
| copyLine | back to summary |
|---|---|
| private static void copyLine(Bitmap src, Bitmap dst, int sourceUpShift, int sourceDownShift, int padding, int firstSourceByteOfLine, int lastSourceByteOfLine, boolean usePadding, int sourceOffset, int targetOffset) | |
| extract | back to summary |
|---|---|
| public static Bitmap extract(final Rectangle roi, final Bitmap src) Returns the specified rectangle area of the bitmap. | |
| subsample | back to summary |
|---|---|
| public static Bitmap subsample(Bitmap src, ImageReadParam param) | |
| subsampleX | back to summary |
|---|---|
| public static Bitmap subsampleX(Bitmap src, final int xSubsampling, final int xSubsamplingOffset) | |
| subsampleY | back to summary |
|---|---|
| public static Bitmap subsampleY(Bitmap src, final int ySubsampling, final int ySubsamplingOffset) | |
| unpad | back to summary |
|---|---|
| private static byte unpad(int padding, byte value) Removes unnecessary bits from a byte.
| |