Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 parse
        palette - palette to use, or null for a private palette
        background - the background color to use
        maybeTransparent - if true, transparency in the image will be honored
    • Method Detail

      • isTransparent

        public boolean isTransparent()
        If true, this image might have transparent pixels.
        Returns:
        whether this image might have transparent pixels
      • getImage

        public java.awt.image.BufferedImage getImage()
        Get the image.
        Returns:
        the sixel data as an image.