AnnotationDataCalculateAnnotationBounds Method (AnnotationPen, AnnotationBrush, PointF) |
This method will calculate the bounding rectangle without applying the annotation transforms.
Namespace:
Atalasoft.Annotate
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax protected RectangleF CalculateAnnotationBounds(
AnnotationPen pen,
AnnotationBrush shadow,
PointF shadowOffset
)
Protected Function CalculateAnnotationBounds (
pen As AnnotationPen,
shadow As AnnotationBrush,
shadowOffset As PointF
) As RectangleF
Parameters
- pen
- Type: Atalasoft.AnnotateAnnotationPen
The AnnotationPen used by the annotation, if any. - shadow
- Type: Atalasoft.AnnotateAnnotationBrush
The AnnotationBrush used for the shadow, if any. - shadowOffset
- Type: System.DrawingPointF
The position offset used for the shadow.
Return Value
Type:
RectangleF The bounding rectangle of the annotation without its transforms applied.
Remarks To get the annotation bounds with its transforms applied, use the PointF method.
See Also