createArgbRaster

open fun createArgbRaster(width: Int, glyph: @NotNull Array<Int>, leftBorder: Int, rightBorder: Int, argb1: Int, argb0: Int): Array<Int>

Creates an argb raster from of glyph.

Return

An argb raster representing the image of the glyph.Dimensions: (rightBorder - leftBorder + 1) x 16 pixels

Parameters

width

The width of the binary glyph data.

glyph

The glyph as an int array, where each int is a row in the glyph texture.

leftBorder

The first column of the glyph, either determined by findVerticalBorders or configured through size overrides.

rightBorder

The last column of the glyph, either determined by findVerticalBorders or configured through size overrides.

argb1

The color to use for pixels that are part of the glyph

argb0

The color to use for pixels that are not part of the glyph