Aspose::Font::Renderers::RenderingUtils::DrawText 方法

RenderingUtils::DrawText(System::SharedPtr<Font>, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, double) method

Rendering text in BitMap. Return result in PNG-format as stream of bytes.

static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> glyphIds, double fontSize)
参数类型描述
fontSystem::SharedPtr<Font>字体
glyphIdsSystem::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>文本表示为字形标识符数组
fontSizedouble字体 大小

ReturnValue

PNG 格式的图像,以字节流形式

另见

RenderingUtils::DrawText(System::SharedPtr<Font>, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, double, RenderingUtils::LineSpacingType, int32_t, int32_t) method

Rendering text in BitMap. Return result in PNG-format as stream of bytes.

static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> glyphIds, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
参数类型描述
fontSystem::SharedPtr<Font>字体
glyphIdsSystem::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>文本表示为字形标识符数组
fontSizedouble字体 大小
lineSpacingTypeRenderingUtils::LineSpacingType行间距的类型。像素数或字体高度的百分比
lineSpacingValueint32_t行间距的值
maxWidthint32_t图像的最大宽度(像素)

ReturnValue

PNG 格式的图像,以字节流形式

另见

RenderingUtils::DrawText(System::SharedPtr<Font>, System::String, double) method

Rendering text in BitMap. Return result in PNG-format as stream of bytes.

static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::String text, double fontSize)
参数类型描述
fontSystem::SharedPtr<Font>字体
文本System::StringText
fontSizedouble字体 大小

ReturnValue

PNG 格式的图像,以字节流形式

另见

RenderingUtils::DrawText(System::SharedPtr<Font>, System::String, double, RenderingUtils::LineSpacingType, int32_t, int32_t) method

Rendering text in BitMap. Return result in PNG-format as stream of bytes.

static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::String text, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
参数类型描述
fontSystem::SharedPtr<Font>字体
文本System::StringText
fontSizedouble字体 大小
lineSpacingTypeRenderingUtils::LineSpacingType行间距的类型。像素数或字体高度的百分比
lineSpacingValueint32_t行间距的值
maxWidthint32_t图像的最大宽度(像素)

ReturnValue

PNG 格式的图像,以字节流形式

另见