Package jexer.backend

Class UnicodeGlyphEncoder


  • public class UnicodeGlyphEncoder
    extends java.lang.Object
    UnicodeGlyphEncoder turns a BufferedImage into single character from the Unicode block-drawing elements ("Symbols For Legacy Computing").
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UnicodeGlyphEncoder.GlyphSet
      Available sets of glyphs to convert to.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnicodeGlyphEncoder()
      Public constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Convert all filenames to sixel.
      void reloadOptions()
      Reload options from System properties.
      java.lang.String toUnicodeGlyph​(java.awt.image.BufferedImage bitmap, int textWidthPixels, int textHeightPixels)
      Create a string representing a bitmap.
      • Methods inherited from class java.lang.Object

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

      • UnicodeGlyphEncoder

        public UnicodeGlyphEncoder()
        Public constructor.
    • Method Detail

      • reloadOptions

        public void reloadOptions()
        Reload options from System properties.
      • toUnicodeGlyph

        public java.lang.String toUnicodeGlyph​(java.awt.image.BufferedImage bitmap,
                                               int textWidthPixels,
                                               int textHeightPixels)
        Create a string representing a bitmap.
        Parameters:
        bitmap - the bitmap data
        textWidthPixels - text cell width in pixels
        textHeightPixels - text cell height in pixels
        Returns:
        the string to emit to an ANSI / ECMA-style terminal
      • main

        public static void main​(java.lang.String[] args)
        Convert all filenames to sixel.
        Parameters:
        args - [] the filenames to read