PrintContext.setCairoContext

void setCairoContext(cairo.context.Context cr, double dpiX, double dpiY)

Sets a new cairo context on a print context.

This function is intended to be used when implementing an internal print preview, it is not needed for printing, since GTK+ itself creates a suitable cairo context in that case.

Parameters

crthe cairo context
dpiXthe horizontal resolution to use with cr
dpiYthe vertical resolution to use with cr