Click or drag to resize

AnnotationDataCalculateBounds Method (RectangleF, AnnotationPen, AnnotationBrush, PointF)

This method will add the annotation pen width, shadow and transforms to the provided rectangle bounds.

Namespace:  Atalasoft.Annotate
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected RectangleF CalculateBounds(
	RectangleF bounds,
	AnnotationPen pen,
	AnnotationBrush shadow,
	PointF shadowOffset
)

Parameters

bounds
Type: System.DrawingRectangleF
The bounding rectangle to which the pen, shadow and transforms will be applied.
pen
Type: Atalasoft.AnnotateAnnotationPen
The AnnotationPen being applied to the bounds.
shadow
Type: Atalasoft.AnnotateAnnotationBrush
The AnnotationBrush used for the shadow.
shadowOffset
Type: System.DrawingPointF
The position offset used for the shadow.

Return Value

Type: RectangleF
The rectangle in document space.
Remarks
This method will apply the render transforms when calculating the bounds. Use the CalculateAnnotationBounds(AnnotationPen, AnnotationBrush, PointF) method to get the bounds without any transforms applied.
See Also