Click or drag to resize

AnnotationDataCalculateAnnotationBounds 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.DrawingRectangleF
A bounding rectangle to which the pen and shadow will be applied.
pen
Type: Atalasoft.AnnotateAnnotationPen
The AnnotationPen used on this rectangle, if any.
shadow
Type: Atalasoft.AnnotateAnnotationBrush
The AnnotationBrush used for the shadow of this rectangle, if any.
shadowOffset
Type: System.DrawingPointF
The position offset of the shadow.

Return Value

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