IFontMorseDecoder.Decode

Decode(string, IFont, MorseAlphabets, char, char)

Deciphers Morse code into glyphs of the specified font.

public GlyphId[] Decode(string morseText, IFont font, 
    MorseAlphabets alphabet = MorseAlphabets.Latin, char inputSeparator = ' ', 
    char outputSeparator = '/')
ParameterTypeDescription
morseTextStringText encoded by Morse code, ie text like “… — …"(SOS)
fontIFontFont to take glyphs related to decoded text from
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorCharSymbol used to separate words in encoded text
outputSeparatorCharSymbol used to separate words in decoded text

Return Value

Glyphs (glyph identifiers) related to decoded text

See Also


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

Deciphers Morse code and draws result in PNG-format.

public Stream Decode(string morseText, IFont font, double fontSize, 
    LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, 
    MorseAlphabets alphabet = MorseAlphabets.Latin, char inputSeparator = ' ', 
    char outputSeparator = '/')
ParameterTypeDescription
morseTextStringText encoded by Morse code, ie text like “… — …"(SOS)
fontIFontFont to take glyphs related to decoded text 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 encoded text
outputSeparatorCharSymbol used to separate words in decoded text

Return Value

Decoded text in PNG-format as stream of bytes

See Also