IFontMorseEncoder.Encode
Contents
[
Hide
]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 = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
font | IFont | Font to take glyphs related to symbols dot and dash from |
alphabet | MorseAlphabets | Alphabet of Morse code |
inputSeparator | Char | Symbol used to separate words in input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”
See Also
- class GlyphId
- interface IFont
- enum MorseAlphabets
- interface IFontMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font
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 = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
font | IFont | Font to take glyphs related to symbols dot and dash from |
inputSeparator | Char | Symbol used to separate words in input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”
See Also
- class GlyphId
- interface IFont
- interface IFontMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font
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 = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
font | IFont | Font to take glyphs related to symbols dot and dash 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 input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Text, encoded by Morse code, in PNG-format as stream of bytes
See Also
- interface IFont
- enum LineSpacingType
- enum MorseAlphabets
- interface IFontMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font
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 = '/')
Parameter | Type | Description |
---|---|---|
text | String | Text to encode by Morse code |
font | IFont | Font to take glyphs related to symbols dot and dash 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 |
inputSeparator | Char | Symbol used to separate words in input text |
outputSeparator | Char | Symbol used to separate words in encoded text |
Return Value
Text, encoded by Morse code, in PNG-format as stream of bytes
See Also
- interface IFont
- enum LineSpacingType
- interface IFontMorseEncoder
- namespace Aspose.Font.TextUtils
- assembly Aspose.Font