public class Image2ascii
extends java.lang.Object
Constructor and Description |
---|
Image2ascii() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convert(java.awt.image.BufferedImage image,
boolean favicon)
The main conversion method.
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
render(java.io.File imageSource,
boolean favicon) |
static java.lang.String |
render(java.net.URL imageSource,
boolean iconFile) |
static java.lang.String |
render(java.net.URL imageSource,
boolean favicon,
boolean iconFile) |
public java.lang.String convert(java.awt.image.BufferedImage image, boolean favicon)
The main conversion method.
image
- A BufferedImage containing the image that needs to be convertedfavicon
- When ico is true it will convert ico file into 16 x 16 sizepublic static java.lang.String render(java.io.File imageSource, boolean favicon)
public static java.lang.String render(java.net.URL imageSource, boolean iconFile)
public static java.lang.String render(java.net.URL imageSource, boolean favicon, boolean iconFile)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2014–2017 ActFramework. All rights reserved.