Class EscPosImage

  • All Implemented Interfaces:
    EscPosPrintObject

    public class EscPosImage
    extends java.lang.Object
    implements EscPosPrintObject
    Printable ESC/POS image representation.
    Since:
    TotalCross 4.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      EscPosImage​(Image image)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EscPosImage align​(byte align)  
      EscPosImage dither​(boolean enabled)  
      EscPosImage width​(int width)  
      void write​(java.io.OutputStream out)
      Writes this printable object to the given output stream.
      • Methods inherited from class java.lang.Object

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

      • EscPosImage

        public EscPosImage​(Image image)
    • Method Detail

      • dither

        public EscPosImage dither​(boolean enabled)
      • write

        public void write​(java.io.OutputStream out)
                   throws java.io.IOException
        Description copied from interface: EscPosPrintObject
        Writes this printable object to the given output stream.
        Specified by:
        write in interface EscPosPrintObject
        Parameters:
        out - the output stream
        Throws:
        java.io.IOException - if an I/O error occurs.