RenderingUtils.DrawText

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)
ParameterTypeDescription
fontFontFont
textStringText
fontSizeDoubleFont size

Return Value

Image in PNG format as stream of bytes

See Also


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)
ParameterTypeDescription
fontFontFont
textStringText
fontSizeDoubleFont size
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueInt32Value of line spacing
maxWidthInt32Max width in pixels for image

Return Value

Image in PNG format as stream of bytes

See Also


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)
ParameterTypeDescription
fontFontFont
glyphIdsGlyphId[]Text represented as array of glyph identifiers
fontSizeDoubleFont size

Return Value

Image in PNG format as stream of bytes

See Also


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)
ParameterTypeDescription
fontFontFont
glyphIdsGlyphId[]Text represented as array of glyph identifiers
fontSizeDoubleFont size
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height
lineSpacingValueInt32Value of line spacing
maxWidthInt32Max width in pixels for image

Return Value

Image in PNG format as stream of bytes

See Also