[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: cairo_path_t to GdkRegion?
- From: "Brian J. Tarricone" <bjt23 cornell edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: cairo_path_t to GdkRegion?
- Date: Mon, 14 Apr 2008 20:43:41 -0700
On Mon, 14 Apr 2008 02:38:27 -0700 Brian J. Tarricone wrote:
> Anybody know of a way to munge a cairo_path_t into at
> least an approximate GdkRegion (i.e. suitable for
> gdk_window_shape_combine_region())? Or is there a better way to do
> this?
Figured out something, in case anyone's interested. I used
cairo_copy_path_flat() to get a cairo_path_t that doesn't have any of
those pesky 'curve_to' operations in it, and then converted the path
into a series of GdkPoints, iterating over the path data as described
in the cairo docs. Seems to work decently well, though the paths
unsurprisingly don't match exactly.
-brian
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]