Aspose::Font::Renderers::RenderingUtils::DrawText method

RenderingUtils::DrawText(System::SharedPtr<Aspose::Font::Font>, System::ArrayPtr<System::SharedPtr<Aspose::Font::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<Aspose::Font::Font> font, System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> glyphIds, double fontSize)
ParameterTypeDescription
fontSystem::SharedPtr<Aspose::Font::Font>Font
glyphIdsSystem::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>>Text represented as array of glyph identifiers
fontSizedoubleFont size

ReturnValue

Image in PNG format as stream of bytes

See Also

RenderingUtils::DrawText(System::SharedPtr<Aspose::Font::Font>, System::ArrayPtr<System::SharedPtr<Aspose::Font::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<Aspose::Font::Font> font, System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> glyphIds, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
ParameterTypeDescription
fontSystem::SharedPtr<Aspose::Font::Font>Font
glyphIdsSystem::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>>Text represented as array of glyph identifiers
fontSizedoubleFont size
lineSpacingTypeRenderingUtils::LineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueint32_tValue of line spacing
maxWidthint32_tMax width in pixels for image

ReturnValue

Image in PNG format as stream of bytes

See Also

RenderingUtils::DrawText(System::SharedPtr<Aspose::Font::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<Aspose::Font::Font> font, System::String text, double fontSize)
ParameterTypeDescription
fontSystem::SharedPtr<Aspose::Font::Font>Font
textSystem::StringText
fontSizedoubleFont size

ReturnValue

Image in PNG format as stream of bytes

See Also

RenderingUtils::DrawText(System::SharedPtr<Aspose::Font::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<Aspose::Font::Font> font, System::String text, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
ParameterTypeDescription
fontSystem::SharedPtr<Aspose::Font::Font>Font
textSystem::StringText
fontSizedoubleFont size
lineSpacingTypeRenderingUtils::LineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueint32_tValue of line spacing
maxWidthint32_tMax width in pixels for image

ReturnValue

Image in PNG format as stream of bytes

See Also