AnnotationRenderingEngineCorrectRectangle Method |
Corrects negative width and height values for the rectangle.
Namespace:
Atalasoft.Annotate.Renderer
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax protected static RectangleF CorrectRectangle(
RectangleF rect
)
Protected Shared Function CorrectRectangle (
rect As RectangleF
) As RectangleF
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