Aspose::Font::TextUtils::IFontMorseEncoder::Encode 方法

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

以摩尔斯电码对文本进行编码,并将结果返回为字形集合(glyphId)。使用启发式分析来计算输入文本的字母表。

virtual System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
参数类型描述
文本System::String要通过摩尔斯电码编码的文本
fontSystem::SharedPtr<IFont>Font 用于获取与点和划符号相关的字形
inputSeparatorchar16_t用于分隔输入文本中单词的符号
outputSeparatorchar16_t用于分隔编码文本中单词的符号

ReturnValue

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

另见

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

以摩尔斯电码对文本进行编码,并以 PNG 格式绘制结果。使用启发式分析来计算输入文本的字母表。

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
参数类型描述
文本System::String要通过摩尔斯电码编码的文本
fontSystem::SharedPtr<IFont>Font 用于获取与点和划符号相关的字形
fontSizedouble字体 大小
lineSpacingTypeRenderers::RenderingUtils::LineSpacingType行间距的类型。像素数或字体高度的百分比
lineSpacingValueint32_t行间距的值
maxWidthint32_t图像的最大宽度(像素)
inputSeparatorchar16_t用于分隔输入文本中单词的符号
outputSeparatorchar16_t用于分隔编码文本中单词的符号

ReturnValue

以 PNG 格式的字节流形式呈现的摩尔斯电码编码文本

另见

IFontMorseEncoder::Encode(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::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
参数类型描述
文本System::String要通过摩尔斯电码编码的文本
fontSystem::SharedPtr<IFont>Font 用于获取与点和划符号相关的字形
fontSizedouble字体 大小
lineSpacingTypeRenderers::RenderingUtils::LineSpacingType行间距的类型。像素数或字体高度的百分比
lineSpacingValueint32_t行间距的值
maxWidthint32_t图像的最大宽度(像素)
字母表MorseAlphabets摩尔斯电码的字母表
inputSeparatorchar16_t用于分隔输入文本中单词的符号
outputSeparatorchar16_t用于分隔编码文本中单词的符号

ReturnValue

以 PNG 格式的字节流形式呈现的摩尔斯电码编码文本

另见

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

通过摩尔斯电码对文本进行编码,并将结果返回为字形集合(字形标识符)。

virtual System::ArrayPtr<System::SharedPtr<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
参数类型描述
文本System::String要通过摩尔斯电码编码的文本
fontSystem::SharedPtr<IFont>Font 用于获取与点和划符号相关的字形
字母表MorseAlphabets摩尔斯电码的字母表
inputSeparatorchar16_t用于分隔输入文本中单词的符号
outputSeparatorchar16_t用于分隔编码文本中单词的符号

ReturnValue

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

另见