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
cr | the cairo context |
dpiX | the horizontal resolution to use with cr |
dpiY | the vertical resolution to use with cr |