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 Details

    • Bitmap

      public Bitmap()
  • Method Details

    • 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 IOException
      Description copied from interface: PictureData
      Sets the binary picture data
      Parameters:
      data - picture data
      Throws:
      IOException
    • getImageDimension

      public 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.