Re: [gnome-print] How to create GnomeCanvasBpath?
- From: Cody Russell <cody jhu edu>
- To: kevinmay public xm fj cn
- Cc: gnome-print ximian com
- Subject: Re: [gnome-print] How to create GnomeCanvasBpath?
- Date: 05 Mar 2002 14:17:54 -0500
You need to create a GnomeCanvasPathDef first, and pass that as the
"bpath" argument to create your GnomeCanvasItem. Do something like
this:
GnomecanvasGroup *group = your_canvas_group ();
GnomeCanvasItem *item = NULL;
GnomeCanvasPathDef *def = NULL;
ArtBpath *bpath = your_bpath_here ();
def = gnome_canvas_path_def_new_from_bpath (bpath);
item = gnome_canvas_item_new (group,
gnome_canvas_bpath_get_type (),
"bpath", def,
"fill_color_rgba", 0x00ff, /* Whatever */
NULL);
On Tue, 2002-03-05 at 03:55, kevinmay@public.xm.fj.cn wrote:
> How to create and draw a bezier curve using GnomeCanvasBpath on a GnomeCanvas widget?
>
> how to new a ArtBpath and fill it?
>
> please give sample code if possible, thanks!
--
Cody Russell, bratsche@gnome.org
http://www.gnome.org/~bratsche/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]