loci.formats.tools

## Class AsciiImage

- java.lang.Object
- - loci.formats.tools.AsciiImage

-     public class AsciiImage
      extends java.lang.Object

  A utility class for outputting a BufferedImage as ASCII text.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private static java.lang.String` | `CHARS`
    `private java.awt.image.BufferedImage` | `img`
    `private static java.lang.String` | `NL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AsciiImage(java.awt.image.BufferedImage img)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `private char` | `getChar(int value)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### NL

          private static final java.lang.String NL

    - #### CHARS

          private static final java.lang.String CHARS

      See Also:
        Constant Field Values

    - #### img

          private java.awt.image.BufferedImage img

  - ### Constructor Detail

    - #### AsciiImage

          public AsciiImage(java.awt.image.BufferedImage img)

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### getChar

          private char getChar(int value)

Copyright © 2026 Open Microscopy Environment