[Gimp-developer] Drawing a line in a GIMP plugin
Adam C Powell IV
hazelsct at debian.org
Fri May 29 16:41:45 PDT 2009
On Sat, 2009-05-30 at 00:00 +0200, Sven Neumann wrote:
> Hi,
>
> On Fri, 2009-05-29 at 17:51 -0400, Adam C Powell IV wrote:
>
> > I'm a relative newbie trying to have a GIMP plugin draw a line (among
> > other things).
> >
> > I found gdk_draw_line which seems to be what I want.
>
> It is not what you want. GDK is a drawing toolkit used by GTK+ for
> drawing user interfaces. It is not meant and not suited for drawing to
> GIMP drawables.
>
> You probably want to use the procedures gimp-paint or gimp-pencil that
> allow you to draw strokes using the paintbrush or pencil tools.
I see. I was hoping to avoid the complexity of choosing brushes and
whatnot, and just draw a simple line with squared-off end...
But okay. A search for "gimp plugin draw line" doesn't turn up anything
looking helpful. Can you point me to an object or method to get
started?
Thanks,
-Adam
--
GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6
Engineering consulting with open source tools
http://www.opennovation.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /lists/gimp-developer/attachments/20090529/c18632bf/attachment.bin
More information about the Gimp-developer
mailing list