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
(,
double dpiX
,
double dpiY
)

Parameters

cr Context

the cairo context

dpiX double

the horizontal resolution to use with @cr

dpiY double

the vertical resolution to use with @cr

Meta

Since

2.10