Click or drag to resize

BitmapImageDrawText Method

Draws text as a bitmap image. Use tags <b></b>, <i></i> and <u></u> for bold, italic and underline.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
public static IBitmapImage DrawText(
	string text,
	string font,
	float size,
	int foreColour,
	int backColour,
	int margin
)

Parameters

text
Type: SystemString
Text to draw.
font
Type: SystemString
Font to use.
size
Type: SystemSingle
Font size.
foreColour
Type: SystemInt32
Text fore colour.
backColour
Type: SystemInt32
Image background colour.
margin
Type: SystemInt32
Pixel margin around text.

Return Value

Type: IBitmapImage
A new image instance.
See Also