Hi,

On 2/28/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:


(define (script-fu-path-fill-aliased image layer)
   (let* ((path (car (gimp-path-get-current image))))
     (gimp-image-undo-group-start image)
     (gimp-path-to-selection image path CHANNEL-OP-REPLACE FALSE FALSE 0
0)
     (gimp-edit-bucket-fill layer FG-BUCKET-FILL NORMAL-MODE 100 0 FALSE 0
0)
     (gimp-selection-none image)
     (gimp-path-delete image path)
     (gimp-displays-flush)
     (gimp-image-undo-group-end image)
     )
   )


The script as defined above produces an antialiased fill, which is naturally
the opposite of aliased (aliasing is stairstepping, and antialiasing
counteracts it.). If an aliased (ie. hard-edged) rendering were preferable,
(gimp-selection-sharpen image) would be needed before bucket filling.
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to