Class Bitmap

  • All Implemented Interfaces:
    GenericRecord, 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.
    • Method Detail

      • getData

        public byte[] getData()
        Description copied from interface: PictureData
        Returns the binary data of this Picture
        Returns:
        picture data
      • 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.