[cairo] Changing resolution

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Tue Apr 26 00:26:11 UTC 2016


On Mon, 25 Apr 2016 13:49:23 +0000 (UTC), Michele Cleary wrote:

> Does anyone know how to use cairo to force an x and y page
> resolution?

Assuming by “resolution” you mean “pixel density” rather than
“image dimensions”, this only matters for image surfaces, since other
surface types like SVG, PDF and PostScript are resolution-independent.

Cairo doesn’t have any way that I can think of to specify the pixel
density for an image surface. That would be up to the separate library
you use to write those pixels to an appropriate image-file format.


More information about the cairo mailing list