RenderingUtils.DrawText
Contents
[
Hide
]DrawText(Font, string, double)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
public static Stream DrawText(Font font, string text, double fontSize)
Parameter | Type | Description |
---|---|---|
font | Font | Font |
text | String | Text |
fontSize | Double | Font size |
Return Value
Image in PNG format as stream of bytes
See Also
- class Font
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, string, double, LineSpacingType, int, int)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
public static Stream DrawText(Font font, string text, double fontSize,
LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Parameter | Type | Description |
---|---|---|
font | Font | Font |
text | String | Text |
fontSize | Double | Font size |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
lineSpacingValue | Int32 | Value of line spacing |
maxWidth | Int32 | Max width in pixels for image |
Return Value
Image in PNG format as stream of bytes
See Also
- class Font
- enum LineSpacingType
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, GlyphId[], double)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize)
Parameter | Type | Description |
---|---|---|
font | Font | Font |
glyphIds | GlyphId[] | Text represented as array of glyph identifiers |
fontSize | Double | Font size |
Return Value
Image in PNG format as stream of bytes
See Also
- class Font
- class GlyphId
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, GlyphId[], double, LineSpacingType, int, int)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize,
LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Parameter | Type | Description |
---|---|---|
font | Font | Font |
glyphIds | GlyphId[] | Text represented as array of glyph identifiers |
fontSize | Double | Font size |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
lineSpacingValue | Int32 | Value of line spacing |
maxWidth | Int32 | Max width in pixels for image |
Return Value
Image in PNG format as stream of bytes
See Also
- class Font
- class GlyphId
- enum LineSpacingType
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font