PrintContext.setCairoContext

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.

class PrintContext
void
setCairoContext

Parameters

cr cairo.context.Context

the cairo context

dpiX double

the horizontal resolution to use with cr

dpiY double

the vertical resolution to use with cr