Aspose::Font::TextUtils::IFontMorseEncoder::Encode method

IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, char16_t, char16_t) method

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.

virtual System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
fontSystem::SharedPtr<IFont>Font to take glyphs related to symbols dot and dash from
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also

IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, double, Renderers::RenderingUtils::LineSpacingType, int32_t, int32_t, char16_t, char16_t) method

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

virtual System::SharedPtr<System::IO::Stream> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, double fontSize, Renderers::RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
fontSystem::SharedPtr<IFont>Font to take glyphs related to symbols dot and dash from
fontSizedoubleFont size
lineSpacingTypeRenderers::RenderingUtils::LineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueint32_tValue of line spacing
maxWidthint32_tMax width in pixels for image
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also

IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, double, Renderers::RenderingUtils::LineSpacingType, int32_t, int32_t, MorseAlphabets, char16_t, char16_t) method

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

virtual System::SharedPtr<System::IO::Stream> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, double fontSize, Renderers::RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth, MorseAlphabets alphabet, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
fontSystem::SharedPtr<IFont>Font to take glyphs related to symbols dot and dash from
fontSizedoubleFont size
lineSpacingTypeRenderers::RenderingUtils::LineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueint32_tValue of line spacing
maxWidthint32_tMax width in pixels for image
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also

IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, MorseAlphabets, char16_t, char16_t) method

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

virtual System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, MorseAlphabets alphabet, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
ParameterTypeDescription
textSystem::StringText to encode by Morse code
fontSystem::SharedPtr<IFont>Font to take glyphs related to symbols dot and dash from
alphabetMorseAlphabetsAlphabet of Morse code
inputSeparatorchar16_tSymbol used to separate words in input text
outputSeparatorchar16_tSymbol used to separate words in encoded text

ReturnValue

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

See Also