Package jexer.tterminal
Class SixelDecoder
- java.lang.Object
-
- jexer.tterminal.SixelDecoder
-
public class SixelDecoder extends java.lang.Object
SixelDecoder parses a buffer of sixel image data into a BufferedImage.
-
-
Constructor Summary
Constructors Constructor Description SixelDecoder(java.lang.String buffer, java.util.HashMap<java.lang.Integer,java.awt.Color> palette, java.awt.Color background, boolean maybeTransparent)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
getImage()
Get the image.boolean
isTransparent()
If true, this image might have transparent pixels.
-
-
-
Constructor Detail
-
SixelDecoder
public SixelDecoder(java.lang.String buffer, java.util.HashMap<java.lang.Integer,java.awt.Color> palette, java.awt.Color background, boolean maybeTransparent)
Public constructor.- Parameters:
buffer
- the sixel data to parsepalette
- palette to use, or null for a private palettebackground
- the background color to usemaybeTransparent
- if true, transparency in the image will be honored
-
-