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

AVS.DrawBoxes_TwoColors Method

Draws boxes on an image with two colors, depending on the status of each box.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void DrawBoxes_TwoColors
(
	AvlNet.Image inImage,
	NullableRef<IList<AvlNet.Box?>> inBoxes,
	AvlNet.Pixel inColorIfTrue,
	AvlNet.Pixel inColorIfFalse,
	NullableRef<IList<bool?>> inConditions,
	float inOpacity,
	bool inForceRgb,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inBoxesAvlNet.NullableRef<System.Collections.Generic.IList<AvlNet.Box?>>{ }Default value: { }.
inColorIfTrueAvlNet.PixelPixel ( X: 0.0f Y: 200.0f Z: 0.0f W: 0.0f )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 )Default value: Pixel ( X: 200.0f Y: 0.0f Z: 0.0f W: 0.0f ).
inConditionsAvlNet.NullableRef<System.Collections.Generic.IList<bool?>>{ }Default value: { }.
inOpacityfloat<0.0f, 1.0f>1.0fDefault value: 1.0f.
inForceRgbboolTrueFilter will convert monochromatic image to RGB if needed. Default value: True.
outImageAvlNet.ImageOutput image.

See also