Click or drag to resize

AnnotationData.CalculateAnnotationBounds Method (RectangleF, 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(
	RectangleF bounds,
	AnnotationPen pen,
	AnnotationBrush shadow,
	PointF shadowOffset
)

Parameters

bounds
Type: System.Drawing.RectangleF
A bounding rectangle to which the pen and shadow will be applied.
pen
Type: Atalasoft.Annotate.AnnotationPen
The AnnotationPen used on this rectangle, if any.
shadow
Type: Atalasoft.Annotate.AnnotationBrush
The AnnotationBrush used for the shadow of this rectangle, if any.
shadowOffset
Type: System.Drawing.PointF
The position offset of the shadow.

Return Value

Type: RectangleF
The rectangle that includes the pen and shadow offsets.
See Also