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: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxprotected RectangleF CalculateBounds(
RectangleF bounds,
AnnotationPen pen,
AnnotationBrush shadow,
PointF shadowOffset
)
Protected Function CalculateBounds (
bounds As RectangleF,
pen As AnnotationPen,
shadow As AnnotationBrush,
shadowOffset As PointF
) As RectangleF
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
See Also