public class RenderingUtils extends Object
Provides utility methods for rendering.
| Modifier and Type | Class and Description |
|---|---|
static class |
RenderingUtils.LineSpacingType
Line Spacing Type.
|
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
drawText(Font font,
GlyphId[] glyphIds,
double fontSize)
Rendering text in BitMap.
|
static InputStream |
drawText(Font font,
GlyphId[] glyphIds,
double fontSize,
RenderingUtils.LineSpacingType lineSpacingType,
int lineSpacingValue,
int maxWidth)
Rendering text in BitMap.
|
static InputStream |
drawText(Font font,
String text,
double fontSize)
Rendering text in BitMap.
|
static InputStream |
drawText(Font font,
String text,
double fontSize,
RenderingUtils.LineSpacingType lineSpacingType,
int lineSpacingValue,
int maxWidth)
Rendering text in BitMap.
|
public static InputStream drawText(Font font, String text, double fontSize)
Rendering text in BitMap.
font - The font.text - The text.fontSize - The font size.public static InputStream drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Rendering text in BitMap.
font - The font.text - The text.fontSize - The font size.lineSpacingType - The type of line spacing. Number of pixels or percent of font height.lineSpacingValue - The value of line spacing.maxWidth - The maximum width in pixels for the resulting image.public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
font - FontglyphIds - Text represented as array of glyph identifiersfontSize - Font sizepublic static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Rendering text in BitMap. Return result in PNG-format as stream of bytes
font - FontglyphIds - Text represented as array of glyph identifiersfontSize - Font sizelineSpacingType - Type of line spacing. Number of pixels or percent of font heightlineSpacingValue - Value of line spacingmaxWidth - Max width in pixels for imageCopyright © 2025 Aspose. All Rights Reserved.