Package org.jnbis.api.handler
Class BitmapHandler
- java.lang.Object
-
- org.jnbis.api.handler.BitmapHandler
-
public final class BitmapHandler extends Object
A handler for bitmap images.
-
-
Constructor Summary
Constructors Constructor Description BitmapHandler(Bitmap bitmap)Creates an instance ofBitmapHandlerwith givenBitmap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitmapasBitmap()Returns the enclosedBitmapdata.FileHandlertoGif()Converts theBitmapdata to GIF image format and returns aFileHandler.FileHandlertoJpg()Converts theBitmapdata to JPEG image format and returns aFileHandler.FileHandlertoPng()Converts theBitmapdata to PNG image format and returns aFileHandler.
-
-
-
Method Detail
-
toPng
public FileHandler toPng()
Converts theBitmapdata to PNG image format and returns aFileHandler.- Returns:
- a FileHandler, not null
- See Also:
FileHandler
-
toGif
public FileHandler toGif()
Converts theBitmapdata to GIF image format and returns aFileHandler.- Returns:
- a FileHandler, not null
- See Also:
FileHandler
-
toJpg
public FileHandler toJpg()
Converts theBitmapdata to JPEG image format and returns aFileHandler.- Returns:
- a FileHandler, not null
- See Also:
FileHandler
-
-