SetViewportExtent


static Point SetViewportExtent(Handle Device,
                               int X,
                               int Y)

This function sets the dimensions of the viewport of a device.

Parameters

Handle Device

The handle of the device context.

int X

The width (in device units) of the viewport of the device.

int Y

The height (in device units) of the viewport of the device.

Return

Point

The previous width and height of the viewport.

Notes

When any of the unit modes:

is set, calls to this function and to the function SetWindowExtent are ignored. When the unit mode is Unit::Isotropic, the function SetWindowExtent should be called prior to calling this function.

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll