Aspose::Font::TextUtils::IFontMorseDecoder::Decode 方法

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

解码摩尔斯电码并以 PNG 格式绘制结果。

virtual System::SharedPtr<System::IO::Stream> Aspose::Font::TextUtils::IFontMorseDecoder::Decode(System::String morseText, System::SharedPtr<IFont> font, double fontSize, Renderers::RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth, MorseAlphabets alphabet=Aspose::Font::TextUtils::MorseAlphabets::Latin, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
参数类型描述
morseTextSystem::String摩尔斯电码编码的文本,例如 “… — …"(SOS)
fontSystem::SharedPtr<IFont>Font 用于获取与已解码文本相关的字形
fontSizedouble字体 大小
lineSpacingTypeRenderers::RenderingUtils::LineSpacingType行间距的类型。像素数或字体高度的百分比
lineSpacingValueint32_t行间距的值
maxWidthint32_t图像的最大宽度(像素)
字母表MorseAlphabets摩尔斯电码的字母表
inputSeparatorchar16_t用于分隔编码文本中单词的符号
outputSeparatorchar16_t用于分隔解码文本中单词的符号

ReturnValue

已解码的文本以 PNG 格式的字节流形式呈现

另见

IFontMorseDecoder::Decode(System::String, System::SharedPtr<IFont>, MorseAlphabets, char16_t, char16_t) method

将摩尔斯电码解码为指定字体的字形。

virtual System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseDecoder::Decode(System::String morseText, System::SharedPtr<IFont> font, MorseAlphabets alphabet=Aspose::Font::TextUtils::MorseAlphabets::Latin, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
参数类型描述
morseTextSystem::String摩尔斯电码编码的文本,例如 “… — …"(SOS)
fontSystem::SharedPtr<IFont>Font 用于获取与已解码文本相关的字形
字母表MorseAlphabets摩尔斯电码的字母表
inputSeparatorchar16_t用于分隔编码文本中单词的符号
outputSeparatorchar16_t用于分隔解码文本中单词的符号

ReturnValue

Glyphs (glyph identifiers) related to decoded text

另见