PyCDC.GetViewportExt

x, y = GetViewportExt()

Gets the viewport extent of the device context