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

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

Draws strings (text) on an image with two colors, depending on the status of each string (usually: green or red for pass/fail status).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void DrawStrings_TwoColors(
	AvlNet.Image inImage,
	string[] inStrings,
	AvlNet.Location?[] inLocations,
	AvlNet.CoordinateSystem2D? inLocationAlignment,
	AvlNet.Anchor2D inLocationAnchor,
	AvlNet.Pixel inColorIfTrue,
	AvlNet.Pixel inColorIfFalse,
	bool?[] inConditions,
	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
inLocations
Type: System.Nullable<AvlNet.Location>
inLocationAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
inLocationAnchor
Type: AvlNet.Anchor2D
inColorIfTrue
Type: AvlNet.Pixel
Color corresponding to True value on inCondition input
inColorIfFalse
Type: AvlNet.Pixel
Color corresponding to False value on inCondition input
inConditions
Type: System.Nullable<System.Boolean>
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_TwoColors on an empty image.

Errors

Error type Description
DomainError Inconsistent input array sizes in DrawStrings_TwoColors.

See also