IFontMorseDecoder.Decode
Contents
[
Hide
]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 = '/')
Parameter | Type | Description |
---|---|---|
morseText | String | Text encoded by Morse code, ie text like “… — …"(SOS) |
font | IFont | Font to take glyphs related to decoded text from |
alphabet | MorseAlphabets | Alphabet of Morse code |
inputSeparator | Char | Symbol used to separate words in encoded text |
outputSeparator | Char | Symbol used to separate words in decoded text |
Return Value
Glyphs (glyph identifiers) related to decoded text
See Also
- class GlyphId
- interface IFont
- enum MorseAlphabets
- interface IFontMorseDecoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font
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 = '/')
Parameter | Type | Description |
---|---|---|
morseText | String | Text encoded by Morse code, ie text like “… — …"(SOS) |
font | IFont | Font to take glyphs related to decoded text from |
fontSize | Double | Font size |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
lineSpacingValue | Int32 | Value of line spacing |
maxWidth | Int32 | Max width in pixels for image |
alphabet | MorseAlphabets | Alphabet of Morse code |
inputSeparator | Char | Symbol used to separate words in encoded text |
outputSeparator | Char | Symbol used to separate words in decoded text |
Return Value
Decoded text in PNG-format as stream of bytes
See Also
- interface IFont
- enum LineSpacingType
- enum MorseAlphabets
- interface IFontMorseDecoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font