You are here: Start » AVL.NET » AVL.DrawStrings_Palette(AvlNet.Image, string[], AvlNet.Location?[], AvlNet.CoordinateSystem2D?, AvlNet.Anchor2D, AvlNet.Pixel[], AvlNet.DrawingStyle, float, float, bool, AvlNet.Pixel?, AvlNet.Image)

AVL.DrawStrings_Palette(AvlNet.Image, string[], AvlNet.Location?[], AvlNet.CoordinateSystem2D?, AvlNet.Anchor2D, AvlNet.Pixel[], AvlNet.DrawingStyle, float, float, bool, AvlNet.Pixel?, AvlNet.Image)

Draws strings (text) on an image with multiple colors.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void DrawStrings_Palette(
	AvlNet.Image inImage,
	string[] inStrings,
	AvlNet.Location?[] inLocations,
	AvlNet.CoordinateSystem2D? inLocationAlignment,
	AvlNet.Anchor2D inLocationAnchor,
	AvlNet.Pixel[] inColors,
	AvlNet.DrawingStyle inDrawingStyle,
	float inSize,
	float inOrientationAngle,
	bool inForceRgb,
	AvlNet.Pixel? inBackgroundColor,
	out AvlNet.Image outImage
)

Parameters

inImage
Type: AvlNet.Image
Input image
inStrings
Type: System.String
String to draw, or null.
inLocations
Type: System.Nullable<AvlNet.Location>
Center point of each string to draw, or null.
inLocationAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
inLocationAnchor
Type: AvlNet.Anchor2D
inColors
Type: AvlNet.Pixel
Color for each string to be drawn, or null.
inDrawingStyle
Type: AvlNet.DrawingStyle
inSize
Type: System.Single
Height of a character in pixels
inOrientationAngle
Type: System.Single
Orientation of text in degrees
inForceRgb
Type: System.Boolean
Filter will convert monochromatic image to RGB if needed
inBackgroundColor
Type: System.Nullable<AvlNet.Pixel>
Color of pixels drawn on image in text row, or null.
outImage
Type: AvlNet.Image
Output image

This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Description

The operation draws a strings on the inImage aligning the inLocationAnchor location of the text at the inLocations of the inImage. The height of the font is fixed and equals 16 pixels.

Examples

Example usage of the DrawStrings_Palette on an empty image.

See also