IFontMorseEncoder.Encode

Encode(string, IFont, MorseAlphabets, char, char)

Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).

public GlyphId[] Encode(string text, IFont font, MorseAlphabets alphabet, 
    char inputSeparator = ' ', char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
fontIFontFont to take glyphs related to symbols dot and dash from
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”

See Also


Encode(string, IFont, char, char)

Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.

public GlyphId[] Encode(string text, IFont font, char inputSeparator = ' ', 
    char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
fontIFontFont to take glyphs related to symbols dot and dash from
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”

See Also


Encode(string, IFont, double, LineSpacingType, int, int, MorseAlphabets, char, char)

Encodes text by Morse code and draws result in PNG-format.

public Stream Encode(string text, IFont font, double fontSize, LineSpacingType lineSpacingType, 
    int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator = ' ', 
    char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
fontIFontFont to take glyphs related to symbols dot and dash from
fontSizeDoubleFont size
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueInt32Value of line spacing
maxWidthInt32Max width in pixels for image
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Text, encoded by Morse code, in PNG-format as stream of bytes

See Also


Encode(string, IFont, double, LineSpacingType, int, int, char, char)

Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.

public Stream Encode(string text, IFont font, double fontSize, LineSpacingType lineSpacingType, 
    int lineSpacingValue, int maxWidth, char inputSeparator = ' ', char outputSeparator = '/')
ParameterTypeDescription
textStringText to encode by Morse code
fontIFontFont to take glyphs related to symbols dot and dash from
fontSizeDoubleFont size
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueInt32Value of line spacing
maxWidthInt32Max width in pixels for image
inputSeparatorCharSymbol used to separate words in input text
outputSeparatorCharSymbol used to separate words in encoded text

Return Value

Text, encoded by Morse code, in PNG-format as stream of bytes

See Also