[cairo] Inverting the Y-axis

Amaury Jacquot sxpert at esitcom.org
Wed Aug 10 09:45:47 PDT 2005


Adrian Johnson wrote:
> Is there an easy way to invert the Y axis?
> 
> I've tried
> 
>    cairo_matrix_init(&m, 1, 0, 0, -1, 0, Y_MAX);
>    cairo_transform(cr, &m);
> 
> however this causes text to be displayed upside down.

guess you need to tranform your data first...



More information about the cairo mailing list