![]() (gimp-layer-resize theLayer theImageWidth theImageHeight 0 0) (gimp-image-resize theImage theImageWidth theImageHeight 0 0) (set! theImageWidth (+ theImageWidth theBuffer theBuffer) ) (set! theImageHeight (+ theImageHeight theBuffer theBuffer) ) (set! theBuffer (* theImageHeight (/ inBufferAmount 100) ) ) (set! theImageHeight (car (gimp-drawable-height theText) ) ) (set! theImageWidth (car (gimp-drawable-width theText) ) ) (gimp-drawable-fill theLayer BACKGROUND-FILL) (gimp-context-set-foreground inTextColor) (gimp-image-add-layer theImage theLayer 0) (theBuffer) create a new layer for the image ![]() (define (script-fu-text-box inImage inText inFont inFontSize inTextColor inBufferAmount) (script-fu-menu-register "script-fu-text-box" "/File/Create/Text") SF-STRING "Text" "Text Box" a string variable "Creates a simple text box, sized to fit\įont, font size, and color." descriptionĢ009, the GIMP Documentation Team" copyright notice And if you create a script that takes and image, a drawable, and an opacity, the dialog will only have a widget for the opacity.įinal note: you don't reduce the opacity of an image but the opacity of a layer in the image, so you will need both arguments. In some cases, if you re-run the script (Ctr-shift-F), it can need to ask for and image or drawable and you will get an auto-generated popup. So if you create a script that just takes an image and a drawable (or just an image), the script executes right away without showing a dialog. And here also, since it is implicitly determined, the auto-generated dialog doesn't include a widget to select it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |