[Gimp-developer] GIMP Vectors Object Documentation
Hi All, I've been doing a little python-fu lately and find that in 2.3.18 stroking paths uses vector objects. So far I haven't turned up any practical examples of the use of the various pdb vectors functions in the source or on the Web, nor had any success through trial and error. Could someone point me to documentation for the pdb vectors procedures and/or post a brief sample python-fu snippet that creates a circular path and then draws a circle by stroking the path/vector? Thanks, Barton ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] GIMP Vectors Object Documentation
Barton ([EMAIL PROTECTED]) wrote: I've been doing a little python-fu lately and find that in 2.3.18 stroking paths uses vector objects. So far I haven't turned up any practical examples of the use of the various pdb vectors functions in the source or on the Web, nor had any success through trial and error. Could someone point me to documentation for the pdb vectors procedures and/or post a brief sample python-fu snippet that creates a circular path and then draws a circle by stroking the path/vector? Here is a simple script-fu script to construct an circle and stroke it, It should be possible to convert it to python easily. Note that you right now cannot control every aspect of stroking, since the gimp context does not yet store stuff like e.g. a dash pattern. I hope this helps. Simon -- [EMAIL PROTECTED] http://simon.budig.de/ (define (script-fu-draw-circle image layer) (let* ( (w (car (gimp-image-width image))) (vectors 0) ) (set! vectors (car (gimp-vectors-new image circle))) (gimp-image-add-vectors image vectors -1) (gimp-vectors-bezier-stroke-new-ellipse vectors (/ w 2) (/ w 2) (/ w 3) (/ w 3) 0) (gimp-edit-stroke-vectors layer vectors) ) ) (script-fu-register script-fu-draw-circle Draw Circle Sample script to draw a circle Simon Budig (c) 2007 Simon Budig 4. 09. 2007 * SF-IMAGE input image -1 SF-DRAWABLE active drawable -1 ) (script-fu-menu-register script-fu-draw-circle Image/Filters/Render) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] ANNOUNCE: GIMP 2.4.0-rc2
Hi all, the second release candidate on the way to GIMP 2.4 is finally out. Grab the tarball from ftp://ftp.gimp.org/pub/gimp/v2.4/testing or one of its mirrors. Changes in GIMP 2.4.0-rc2 = - more improvements and bug fixes in the rectangle tools - antialias the display for zoom levels between 100% and 200% - fix zoomed-out display problems - improve handling of JPEG settings - fix script-fu error reporting - on OS X, get rid of menubars in windows and use the global menubar - fix plug-ins using GimpZoomPreview - throw properly catchable exceptions from foreign script-fu function (like PDB wrappers) - bug fixes As always, please test it hard and report bugs if you find any (ha ha). Happy GIMPing, --Mitch ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer