RasterGlyphGrid

class RasterGlyphGrid(val gridWidth: Int, val gridHeight: Int, val glyphWidth: Int, val glyphHeight: Int, raster: IntArray) : GlyphGrid<IntArray>

An immutable GlyphGrid implementation that stores the entire grid in an argb raster.

Parameters

glyphWidth

The width of each glyph.

glyphHeight

The height of each glyph.

gridWidth

The width of the grid, i.e. the number of columns.

gridHeight

The height of the grid, i.e. the number of rows.

raster

The backing raster.

Constructors

Link copied to clipboard
constructor(gridWidth: Int, gridHeight: Int, glyphWidth: Int, glyphHeight: Int, raster: IntArray)

Properties

Link copied to clipboard
open override val glyphHeight: Int
Link copied to clipboard
open override val glyphWidth: Int
Link copied to clipboard
open override val gridHeight: Int
Link copied to clipboard
open override val gridWidth: Int

Functions

Link copied to clipboard
open operator override fun get(x: Int, y: Int): IntArray

Gets the glyph at the specified x and y coordinates.

Link copied to clipboard
open override fun toImage(): BufferedImage

Creates a BufferedImage of this grid.