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
)
Public Shared Function CreateTextImage (
text As String,
fontFamily As String,
emSize As Single,
fontStyle As FontStyle,
color As Color,
backgroundColor As Color,
width As Integer,
height As Integer,
format As ImageFormat
) As Byte()
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:
ByteA buffer containing the image data.
See Also