fun addCharacterToOutput( characterEntry: Map.Entry<Char?, GrayscaleMatrix?>, sourceImagePixels: IntArray?, tileX: Int, tileY: Int, imageWidth: Int ) { this.output.append(characterEntry.key) if ((tileX + 1) * this.characterCache.getCharacterImageSize().getWidth() === imageWidth) { this.output.append(System.lineSeparator()) } }
Append choosen character to StringBuffer .