[cairo] how to change dpi?

Arjen Nienhuis a.g.nienhuis at gmail.com
Tue Feb 23 15:48:40 PST 2010


On Tue, Feb 23, 2010 at 8:40 AM, Alexander Shulgin
<alex.shulgin at gmail.com> wrote:
> On Tue, Feb 23, 2010 at 08:42, Salman Jeelani
> <salmanjeelani2003 at yahoo.com> wrote:
>>
>> hi,
>> Is there any way to change dpi for image surface?

No, there is not.

>
> What are you trying to achieve exactly?  Why do you need it?

I use it for printing. I make a 20x20cm PNG with 400 DPI. I use a
different library (PIL) to save the file.

Cairo doesn't save DPI information with PNG files.

> --
> Alex
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list