Re: Drawing a line in a GIMP plugin

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

 



On Sat, 2009-05-30 at 20:47 -0400, Adam C Powell IV wrote:
> I'm sorry, I'm developing a C plugin (tried Scheme first and it was DOG
> slow).  Is there a C equivalent?  All I'm seeing is
> gimp-paintbrush-register.

Open Gimp
Select Help > Procedure Browser
In the search box, type "brush"
Click on "gimp-context-set-brush"
Read the documentation
In your plugin, add the line:

gboolean result = gimp_context_set_brush("Circle (01)");

Rinse, lather, repeat.

(The hardest part is changing the dashes in the name to underscores.)

--David


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux