IDirectManipulationPrimaryContent::SetZoomBoundaries method (directmanipulation.h)
Specifies the minimum and maximum boundaries for zoom.
Syntax
HRESULT SetZoomBoundaries(
[in] float zoomMinimum,
[in] float zoomMaximum
);
Parameters
[in] zoomMinimum
The minimum zoom level allowed. Must be greater than or equal to 0.1f, which corresponds to 100% zoom.
[in] zoomMaximum
The maximum zoom allowed. Must be greater than zoomMinimum and less than FLT_MAX.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If the content is outside the new boundaries, and the viewport is ENABLED or READY, then the content is reset to be within the new boundaries. If inertia configuration is enabled, the reset operation uses an inertia animation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |