get_viewport_origin


bool get_viewport_origin(handle device,
                         ipoint* origin)

This function obtains the origin of the viewport of a device context.

Parameters

handle device

The handle of the device context.

ipoint* origin

A pointer to a point that is updated to hold the viewport origin.

Return

bool

true The function succeeded.
false The call failed.

Notes

The viewport origin is measured in device units.