public class Bitmaps extends Object
| Constructor and Description |
|---|
Bitmaps() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
asBufferedImage(Bitmap bitmap)
Returns the given bitmap as buffered image.
|
static BufferedImage |
asBufferedImage(Bitmap bitmap,
FilterType filterType)
Returns the given bitmap as buffered image.
|
static BufferedImage |
asBufferedImage(Bitmap bitmap,
ImageReadParam param,
FilterType filterType)
Returns the given bitmap as buffered image.
|
static WritableRaster |
asRaster(Bitmap bitmap)
Returns the given bitmap as writable raster.
|
static WritableRaster |
asRaster(Bitmap bitmap,
FilterType filterType)
Returns the given bitmap as writable raster.
|
static WritableRaster |
asRaster(Bitmap bitmap,
ImageReadParam param,
FilterType filterType)
Returns the given bitmap as writable raster.
|
static void |
blit(Bitmap src,
Bitmap dst,
int x,
int y,
CombinationOperator combinationOperator)
This method combines a given bitmap with the current instance.
|
static byte |
combineBytes(byte value1,
byte value2,
CombinationOperator op)
The method combines two given bytes with an logical operator.
|
static Bitmap |
extract(Rectangle roi,
Bitmap src)
Returns the specified rectangle area of the bitmap.
|
static Bitmap |
subsample(Bitmap src,
ImageReadParam param) |
static Bitmap |
subsampleX(Bitmap src,
int xSubsampling,
int xSubsamplingOffset) |
static Bitmap |
subsampleY(Bitmap src,
int ySubsampling,
int ySubsamplingOffset) |
public static WritableRaster asRaster(Bitmap bitmap)
bitmap - the given bitmappublic static WritableRaster asRaster(Bitmap bitmap, FilterType filterType)
bitmap - the given bitmapfilterType - type of filter which is used when creating the writable rasterpublic static WritableRaster asRaster(Bitmap bitmap, ImageReadParam param, FilterType filterType)
bitmap - the given bitmapparam - ImageReadParam to be used when creating the writable rasterfilterType - type of filter which is used when creating the writable rasterpublic static BufferedImage asBufferedImage(Bitmap bitmap)
bitmap - the given bitmappublic static BufferedImage asBufferedImage(Bitmap bitmap, FilterType filterType)
bitmap - the given bitmapfilterType - type of filter which is used when creating the buffered imagepublic static BufferedImage asBufferedImage(Bitmap bitmap, ImageReadParam param, FilterType filterType)
bitmap - the given bitmapparam - ImageReadParam to be used when creating the buffered imagefilterType - type of filter which is used when creating the buffered imagepublic static Bitmap extract(Rectangle roi, Bitmap src)
roi - - A Rectangle that specifies the requested image section.src - the given bitmapBitmap that represents the requested image section.public static Bitmap subsample(Bitmap src, ImageReadParam param)
public static byte combineBytes(byte value1,
byte value2,
CombinationOperator op)
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.
value1 - - The value that should be combined with value2.value2 - - The value that should be combined with value1.op - - The specified combination operator.public static void blit(Bitmap src, Bitmap dst, int x, int y, CombinationOperator combinationOperator)
Parts of the bitmap to blit that are outside of the target bitmap will be ignored.
src - - The bitmap that should be combined with the one of the current instance.dst - - The destination bitmap.x - - The x coordinate where the upper left corner of the bitmap to blit should be positioned.y - - The y coordinate where the upper left corner of the bitmap to blit should be positioned.combinationOperator - - The combination operator for combining two pixels.Copyright © 2019 The Apache Software Foundation. All rights reserved.