You are here: Start » AVL.NET » AVS.DrawStringLabels_TwoColors Method

AVS.DrawStringLabels_TwoColors Method

Draws strings (text) on an image with two colors, depending on the status of each string.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void DrawStringLabels_TwoColors
(
	AvlNet.Image inImage,
	NullableRef<IList<AvlNet.StringLabel?>> inLabels,
	AvlNet.Anchor2D inLocationAnchor,
	AvlNet.Pixel inColorIfTrue,
	AvlNet.Pixel inColorIfFalse,
	NullableRef<IList<bool?>> inConditions,
	AvlNet.DrawingStyle inDrawingStyle,
	float inSize,
	float inOrientationAngle,
	bool inForceRgb,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inLabelsAvlNet.NullableRef<System.Collections.Generic.IList<AvlNet.StringLabel?>>{ }Default value: { }.
inLocationAnchorAvlNet.Anchor2DMiddleCenterDefault value: MiddleCenter.
inColorIfTrueAvlNet.PixelPixel ( X: 0.0f Y: 200.0f Z: 0.0f W: 0.0f )Color corresponding to True value on inCondition input. Default value: Pixel ( X: 0.0f Y: 200.0f Z: 0.0f W: 0.0f ).
inColorIfFalseAvlNet.PixelPixel ( X: 200.0f Y: 0.0f Z: 0.0f W: 0.0f )Color corresponding to False value on inCondition input. Default value: Pixel ( X: 200.0f Y: 0.0f Z: 0.0f W: 0.0f ).
inConditionsAvlNet.NullableRef<System.Collections.Generic.IList<bool?>>{ }Default value: { }.
inDrawingStyleAvlNet.DrawingStyleDrawingStyle ( DrawingMode: HighQuality Opacity: 1.0f Thickness: 1.0f Filled: False PointShape: Nil PointSize: 1.0f )Default value: DrawingStyle ( DrawingMode: HighQuality Opacity: 1.0f Thickness: 1.0f Filled: False PointShape: Nil PointSize: 1.0f ).
inSizefloat<10.0f, INF>16.0fHeight of a character in pixels. Default value: 16.0f.
inOrientationAnglefloat0.0fOrientation of text in degrees. Default value: 0.0f.
inForceRgbboolTrueFilter will convert monochromatic image to RGB if needed. Default value: True.
outImageAvlNet.ImageOutput image.

Function Overrides

See also