Class BitmapHandler


  • public final class BitmapHandler
    extends Object
    A handler for bitmap images.
    • Constructor Detail

      • BitmapHandler

        public BitmapHandler​(Bitmap bitmap)
        Creates an instance of BitmapHandler with given Bitmap.
        Parameters:
        bitmap - the given bitmap to handle, not null
        See Also:
        Bitmap
    • Method Detail

      • toPng

        public FileHandler toPng()
        Converts the Bitmap data to PNG image format and returns a FileHandler.
        Returns:
        a FileHandler, not null
        See Also:
        FileHandler
      • toGif

        public FileHandler toGif()
        Converts the Bitmap data to GIF image format and returns a FileHandler.
        Returns:
        a FileHandler, not null
        See Also:
        FileHandler
      • toJpg

        public FileHandler toJpg()
        Converts the Bitmap data to JPEG image format and returns a FileHandler.
        Returns:
        a FileHandler, not null
        See Also:
        FileHandler
      • asBitmap

        public Bitmap asBitmap()
        Returns the enclosed Bitmap data.
        Returns:
        a FileHandler, not null
        See Also:
        Bitmap