[cairo] Cairo/PNG shaked up.

Hans Breuer hans at breuer.org
Tue Apr 12 22:43:36 PDT 2005

On 12.04.2005 16:19, Carl Worth wrote:
> On Sun, 10 Apr 2005 22:35:04 +0100, "Hans Breuer" wrote:
>>While updateing my Cairo/Dia plug-in [1] I stumpled not only about
>>about lost convenience [2] (PNG output needs to be special cased now)
> Well, it's different convenience, not lost. The idea is that now
> you'll be able to take your xlib_surface and then generate PNG output
> from it with cairo_surface_write_png, (rather than having to create a
> distinct png_surface type in the first place).
So it just depends which use case is more common ...

>>but also about Cairo apprently not respecting the scale of the output
>>anymore [3] or the image backend is missing some appropriate DPI default.
> [...]
>>[3] http://hans.breuer.org/dia/render-test-shaked-up.png
> I'm not sure what that image is supposed to look like, but I did just
> fix a bug with cairo_show_surface in which the data was being
> translated to the wrong place, (resulting in the display of garbage
> memory). 
Sorry for misspelling the other link. It is supposed to look like my
standard test file http://hans.breuer.org/dia/dia-cairo.htm
It doesn't look like the image is shifted - but it is shrinked (maybe
exacly the size I tried to cairo_scale() it up.

> You might give the latest in CVS a try and see if it's any
> better. Otherwise, let me know more specifically what's going wrong.
Will probably look at latest CVS at the weekend again.


-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert

More information about the cairo mailing list