Re: gnome_canvas_item_rotate




> /* Rotate an item about a point by the specified number of degrees */
> void gnome_canvas_item_rotate (GnomeCanvasItem *item, double x, double y, double angle);
> 
> yet, when I try to use it, I get the following error:

These days what you want is to apply an affine transformation:

> /* Apply a relative affine transformation to the item. */
> void gnome_canvas_item_affine_relative (GnomeCanvasItem *item, const double affine[6]);
> 
> /* Apply an absolute affine transformation to the item. */
> void gnome_canvas_item_affine_absolute (GnomeCanvasItem *item, const double affine[6]);

I agree that wrapper routines that would modify the existing affine
would be nice to have to simplify the ammount of stuff you need to learn.

Miguel.
-- 
GNOME: The royalty free development environment :-)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]