Aspose::Font::Renderers::RenderingUtils::DrawText method
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
font | System::SharedPtr<Aspose::Font::Font> | Font |
glyphIds | System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> | Text represented as array of glyph identifiers |
fontSize | double | Font size |
ReturnValue
Image in PNG format as stream of bytes
See Also
- Typedef SharedPtr
- Class Stream
- Class Font
- Typedef ArrayPtr
- Class GlyphId
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
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)
Parameter | Type | Description |
---|---|---|
font | System::SharedPtr<Aspose::Font::Font> | Font |
glyphIds | System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> | Text represented as array of glyph identifiers |
fontSize | double | Font size |
lineSpacingType | RenderingUtils::LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
lineSpacingValue | int32_t | Value of line spacing |
maxWidth | int32_t | Max width in pixels for image |
ReturnValue
Image in PNG format as stream of bytes
See Also
- Typedef SharedPtr
- Class Stream
- Class Font
- Typedef ArrayPtr
- Class GlyphId
- Enum LineSpacingType
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
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)
Parameter | Type | Description |
---|---|---|
font | System::SharedPtr<Aspose::Font::Font> | Font |
text | System::String | Text |
fontSize | double | Font size |
ReturnValue
Image in PNG format as stream of bytes
See Also
- Typedef SharedPtr
- Class Stream
- Class Font
- Class String
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
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)
Parameter | Type | Description |
---|---|---|
font | System::SharedPtr<Aspose::Font::Font> | Font |
text | System::String | Text |
fontSize | double | Font size |
lineSpacingType | RenderingUtils::LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
lineSpacingValue | int32_t | Value of line spacing |
maxWidth | int32_t | Max width in pixels for image |
ReturnValue
Image in PNG format as stream of bytes
See Also
- Typedef SharedPtr
- Class Stream
- Class Font
- Class String
- Enum LineSpacingType
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++