ID2D1DeviceContext::GetImageLocalBounds method
Gets the bounds of an image without the world transform of the context applied.
Syntax
void GetImageLocalBounds( [in] ID2D1Image *image, [out] D2D1_RECT_F localBounds[1] );
Parameters
- image [in]
-
Type: ID2D1Image*
The image whose bounds will be calculated.
- localBounds [out]
-
Type: D2D1_RECT_F[1]
When this method returns, contains a pointer to the bounds of the image in device independent pixels (DIPs) and in local space.
Return value
This method does not return a value.
Remarks
The image bounds don't include multiplication by the world transform. They do reflect the current DPI, unit mode, and interpolation mode of the context. To get the bounds that include the world transform, use ID2D1DeviceContext::GetImageWorldBounds.
The returned bounds reflect which pixels would be impacted by calling DrawImage with a target offset of (0,0) and an identity world transform matrix. They do not reflect the current clip rectangle set on the device context or the extent of the context's current target image.
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
DLL |
|
See also
- ID2D1DeviceContext
- ID2D1Image
- ID2D1DeviceContext::CreateBitmap
- D2D1_RECT_F
- ID2D1DeviceContext::GetImageWorldBounds