public class BrailleGraphics extends Object
Constructor and Description |
---|
BrailleGraphics(boolean eightDot)
Creates a new instance of braille graphics, with either full 8-dot or
6-dot patterns.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
combine(List<String> background,
List<String> overlay,
int x,
int y)
Combines two braille images by combining characters from the two input
images.
|
List<String> |
renderGraphics(Raster r)
Renders the raster using braille characters.
|
static List<String> |
sixDotFilter(List<String> input)
Filters the input braille image by discarding dots 7 and 8.
|
public BrailleGraphics(boolean eightDot)
eightDot
- true if full 8-dot patterns should be used, false otherwise.public List<String> renderGraphics(Raster r)
r
- the raster to renderpublic static List<String> sixDotFilter(List<String> input)
input
- the braille input, characters in the range 0x2800-0x28FFpublic static List<String> combine(List<String> background, List<String> overlay, int x, int y)
background
- the image onto which data is to be placedoverlay
- the image to place onto the backgroundx
- the overlay offset in charactersy
- the overlay offset in rowsIllegalArgumentException
- if x or y is negative, or if the overlay are out of
bounds of the background image.