set_cairo_context
Description:
[ Version ( since = "2.10" ) ]
public void set_cairo_context (Context cr, double dpi_x, double dpi_y)
public void set_cairo_context (Context cr, double dpi_x, double dpi_y)
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:
this | |
cr |
the cairo context |
dpi_x |
the horizontal resolution to use with |
dpi_y |
the vertical resolution to use with |