Click or drag to resize

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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected RectangleF CalculateBounds(
	AnnotationPen pen,
	AnnotationBrush shadow,
	PointF shadowOffset
)

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