Click or drag to resize

ImageUtilsCreateTextImage Method

Create an image of the specified text with the specified characteristics.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static byte[] CreateTextImage(
	string text,
	string fontFamily,
	float emSize,
	FontStyle fontStyle,
	Color color,
	Color backgroundColor,
	int width,
	int height,
	ImageFormat format
)

Parameters

text
Type: SystemString
The text to render.
fontFamily
Type: SystemString
The font family, e.g. "Arial".
emSize
Type: SystemSingle
The font size.
fontStyle
Type: System.DrawingFontStyle
The font style.
color
Type: System.DrawingColor
The font color.
backgroundColor
Type: System.DrawingColor
The background color.
width
Type: SystemInt32
The image width, in pixels.
height
Type: SystemInt32
The image height, in pixels.
format
Type: System.Drawing.ImagingImageFormat
The output image format.

Return Value

Type: Byte
A buffer containing the image data.
See Also