IFontMorseDecoder
public interface IFontMorseDecoder
Declares functionality to decode Morse code into glyphs of the specified font.
Methods
decode(String morseText, IFont font)
public abstract GlyphId[] decode(String morseText, IFont font)
Deciphers Morse code into glyphs of the specified font.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. text like “… — …"(SOS). |
font | IFont | Font to take glyphs related to decoded text from. |
Returns: com.aspose.font.GlyphId[] - Glyphs (glyph identifiers) related to decoded text.
decode(String morseText, IFont font, MorseAlphabets alphabet)
public abstract GlyphId[] decode(String morseText, IFont font, MorseAlphabets alphabet)
Deciphers Morse code into glyphs of the specified font.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. text like “… — …"(SOS). |
font | IFont | Font to take glyphs related to decoded text from. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
Returns: com.aspose.font.GlyphId[] - Glyphs (glyph identifiers) related to decoded text.
decode(String morseText, IFont font, MorseAlphabets alphabet, char inputSeparator)
public abstract GlyphId[] decode(String morseText, IFont font, MorseAlphabets alphabet, char inputSeparator)
Deciphers Morse code into glyphs of the specified font.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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. |
Returns: com.aspose.font.GlyphId[] - Glyphs (glyph identifiers) related to decoded text.
decode(String morseText, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
public abstract GlyphId[] decode(String morseText, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
Deciphers Morse code into glyphs of the specified font.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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. |
Returns: com.aspose.font.GlyphId[] - Glyphs (glyph identifiers) related to decoded text.
decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
public abstract InputStream decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Deciphers Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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 | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
Returns: java.io.InputStream - Decoded text in PNG-format as stream of bytes.
decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)
public abstract InputStream decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)
Deciphers Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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 | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
Returns: java.io.InputStream - Decoded text in PNG-format as stream of bytes.
decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)
public abstract InputStream decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)
Deciphers Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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 | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in encoded text. |
Returns: java.io.InputStream - Decoded text in PNG-format as stream of bytes.
decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
public abstract InputStream decode(String morseText, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
Deciphers Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. 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 | int | Value of line spacing. |
maxWidth | int | 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. |
Returns: java.io.InputStream - Decoded text in PNG-format as stream of bytes.