ID2D1Ink::GetBounds method (d2d1_3.h)

Retrieve the bounds of the geometry, with an optional applied transform.

Syntax

HRESULT GetBounds(
  [in, optional] ID2D1InkStyle           *inkStyle,
  [in, optional] const D2D1_MATRIX_3X2_F *worldTransform,
  [out]          D2D1_RECT_F             *bounds
);

Parameters

[in, optional] inkStyle

Type: ID2D1InkStyle*

The ink style to be used in determining the bounds of this ink object.

[in, optional] worldTransform

Type: const D2D1_MATRIX_3X2_F*

The world transform to be used in determining the bounds of this ink object.

[out] bounds

Type: D2D1_RECT_F*

When this method returns, contains the bounds of this ink object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
Library D2d1_3.lib
DLL D2d1_3.dll

See also

ID2D1Ink