Surface.getDeviceScale

void getDeviceScale(out double xScale, out double yScale)

This function returns the previous device scale set by [cairo.surface.Surface.setDeviceScale].

Parameters

xScalethe scale in the X direction, in device units
yScalethe scale in the Y direction, in device units