Class Bitmap

  • All Implemented Interfaces:
    PictureData
    Direct Known Subclasses:
    DIB, JPEG, PNG

    public abstract class Bitmap
    extends HSLFPictureData
    Represents a bitmap picture data: JPEG or PNG. The data is not compressed and the exact file content is written in the stream.
    • Constructor Detail

      • Bitmap

        public Bitmap()
    • Method Detail

      • getData

        public byte[] getData()
        Description copied from interface: PictureData
        Returns the binary data of this Picture
        Returns:
        picture data
      • setData

        public void setData​(byte[] data)
                     throws java.io.IOException
        Description copied from interface: PictureData
        Sets the binary picture data
        Parameters:
        data - picture data
        Throws:
        java.io.IOException
      • getImageDimension

        public java.awt.Dimension getImageDimension()
        Description copied from interface: PictureData
        Return the original image dimensions in points (for formats supported by BufferedImage). Will return a Dimension with a default width of 200x200 if the format unsupported.