IInkDisp::GetBoundingBox method (msinkaut.h)
Retrieves the bounding box in ink space coordinates for either all of the strokes in an InkDisp object, an individual stroke, or an InkStrokes collection.
Syntax
HRESULT GetBoundingBox(
[in, optional] InkBoundingBoxMode BoundingBoxMode,
[out, retval] IInkRectangle **Rectangle
);
Parameters
[in, optional] BoundingBoxMode
Optional. Specifies the stroke characteristics to use to calculate the bounding box. For more details about the use of stroke characteristics to calculate a bounding box, see the BoundingBoxMode enumeration type.
The default value is -1 (IBBM_DEFAULT), which means that all characteristics of a stroke are used to specify the bounding box.
[out, retval] Rectangle
When this method returns, contains the rectangle that defines the bounding box of an InkDisp object, an IInkStrokeDisp object, or an InkStrokes collection.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
An exception occurred inside the method. |
|
Unexpected parameter or property type. |
|
The InkRectangle object is not registered. |
Remarks
When the bounding box is affected by the pen width, then this width is scaled appropriately for the InkRenderer 's view transform. To do this, the pen width is multiplied by the square root of the determinant of the view transform.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |