Package jexer.backend
Class UnicodeGlyphEncoder
- java.lang.Object
-
- jexer.backend.UnicodeGlyphEncoder
-
public class UnicodeGlyphEncoder extends java.lang.ObjectUnicodeGlyphEncoder 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 classUnicodeGlyphEncoder.GlyphSetAvailable 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 voidmain(java.lang.String[] args)Convert all filenames to sixel.voidreloadOptions()Reload options from System properties.java.lang.StringtoUnicodeGlyph(java.awt.image.BufferedImage bitmap, int textWidthPixels, int textHeightPixels)Create a string representing a bitmap.
-
-
-
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 datatextWidthPixels- text cell width in pixelstextHeightPixels- 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
-
-