public class Bitmaps extends Object
| Constructor and Description |
|---|
Bitmaps() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
asBufferedImage(Bitmap bitmap) |
static BufferedImage |
asBufferedImage(Bitmap bitmap,
FilterType filterType) |
static BufferedImage |
asBufferedImage(Bitmap bitmap,
ImageReadParam param,
FilterType filterType) |
static WritableRaster |
asRaster(Bitmap bitmap) |
static WritableRaster |
asRaster(Bitmap bitmap,
FilterType filterType) |
static WritableRaster |
asRaster(Bitmap bitmap,
ImageReadParam param,
FilterType filterType) |
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)
public static WritableRaster asRaster(Bitmap bitmap, FilterType filterType)
public static WritableRaster asRaster(Bitmap bitmap, ImageReadParam param, FilterType filterType)
public static BufferedImage asBufferedImage(Bitmap bitmap)
public static BufferedImage asBufferedImage(Bitmap bitmap, FilterType filterType)
public static BufferedImage asBufferedImage(Bitmap bitmap, ImageReadParam param, FilterType filterType)
public static Bitmap extract(Rectangle roi, Bitmap src)
roi - - A Rectangle that specifies the requested image section.Bitmap 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.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 © 2015. All rights reserved.