AnnotationDataCalculateBounds Method (AnnotationPen, AnnotationBrush, PointF) |
This method will calculate the bounding rectangle for the annotation, taking the pen width, shadow and
annotation transforms into account.
Namespace:
Atalasoft.Annotate
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxprotected RectangleF CalculateBounds(
AnnotationPen pen,
AnnotationBrush shadow,
PointF shadowOffset
)
Protected Function CalculateBounds (
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 in document space.
Remarks This method will apply the render transforms when calculating the bounds. Use the
AnnotationBrush method to get the bounds without any transforms applied.
See Also