Class BmpEncoder

  • All Implemented Interfaces:

    public class BmpEncoder
    extends com.idrsolutions.image.JDeliImage
    implements com.idrsolutions.image.Encoder
    Class writes BufferedImages as Bmp


     BmpEncoder encoder = new BmpEncoder();
     encoder.write(image, outputStream);
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BmpEncoderOptions getEncoderOptions()  
      void write​(java.awt.image.BufferedImage image, outputStream)
      Writes BufferedImage as a BMP into an OutputStream
      • Methods inherited from class com.idrsolutions.image.JDeliImage

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BmpEncoder

        public BmpEncoder()
    • Method Detail

      • write

        public void write​(java.awt.image.BufferedImage image,
        Writes BufferedImage as a BMP into an OutputStream

        This method does not close the provided OutputStream after the write operation has completed; it is the responsibility of the caller to close the stream.

        Specified by:
        write in interface com.idrsolutions.image.Encoder
        image - BufferedImage to write
        outputStream - The stream to write the image to
        Throws: - if the image wasn't written