Public classes

Controller
DisplayModel
DotMatrix
TextToContent

Commands/

   AbsCmd
   AbsCmdPosition
   AbsCmdSpeed
   CallbackCommand
   ClearCommand
   ContentCommand
   PauseCommand
   TextCommand

Displays/

   Display
   Display_3D
   Display_Sprite
   Display_UI


Introduction page

TextToContent


Static class that can be used to convert text (string) to content (two dimensional int array).

Note that this class is normally used just internally by TextCommand and in most cases it is better to use TextCommand directly. If this class is used to convert text to content, resulting content must be added to display using DisplayModel or ContentCommand. This however gives much more freedom where to put text on display, or gives possibility to make changes to resulting content before using it.


Static Methods

public static int[,] getContent (string textLine, TextCommand.Fonts font, bool fixedWidth, bool bold, int charSpacing)Change line of text (string) to int content.
public static int[,] getContent (string[] textLines, TextCommand.Fonts font, bool fixedWidth, bool bold, int textColor, int backColor, int charSpacing, int lineSpacing, TextCommand.TextAlignments multiLineTextAlignment)Change multiple lines of text (string) to int content.

Static Methods

public static int[,] getContent (string textLine, TextCommand.Fonts font, bool fixedWidth, bool bold, int charSpacing)

Change line of text (string) to int content.

ParameterstextLineText to convert. If text contains linefeed characters, it will split text to multiple rows and default line spacing and text alignment will be used.
 fontFont to be used to generate content, one of the values from enum TextCommand.Fonts
 fixedWidthIf true, all the characters takes same amount of space. If false, different characters may take different amount of horizontal space.
 boldIf true, resulting text characters are bold. If false, then using normal characters.
 charSpacingAmount of dots between each character.

ReturnsTwo dimensional int array defining states of dots on each row and column.


public static int[,] getContent (string[] textLines, TextCommand.Fonts font, bool fixedWidth, bool bold, int textColor, int backColor, int charSpacing, int lineSpacing, TextCommand.TextAlignments multiLineTextAlignment)

Change multiple lines of text (string) to int content.

ParameterstextLinesOne of more lines of text.
 fontFont to be used to generate content, one of the values from enum TextCommand.Fonts
 fixedWidthIf true, all the characters takes same amount of space. If false, different characters may take different amount of horizontal space.
 boldIf true, resulting text characters are bold. If false, then using normal characters.
 textColorColor used for any dots that should be on.
 backColorColor used for any dots that should be off.
 charSpacingAmount of dots between each character.
 lineSpacingAmount of dots between each line if there is multiple lines of text.
 multiLineTextAlignmentText alignment in case there is multiple lines of text, one of the values from enum TextCommand.TextAlignments

ReturnsTwo dimensional int array defining states of dots on each row and column.