Click or drag to resize

AnnotationRenderingEngineCorrectRectangle Method

Corrects negative width and height values for the rectangle.

Namespace:  Atalasoft.Annotate.Renderer
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected static RectangleF CorrectRectangle(
	RectangleF rect
)

Parameters

rect
Type: System.DrawingRectangleF
The rectangle to correct.

Return Value

Type: RectangleF
A new RectangleF with corrected values.
Remarks
If the width or height is equal to zero, it will be converted to 1 so a line is drawn instead of nothing.
See Also