On Mon, 2003-09-01 at 10:41, David selby wrote:
> I am getting the hang of Gimp1.2. I use it mainly to print out
> speciality cards via my inkjet.
> When I start a fresh "canvas" I can and do define it in mm, set the dpi
> & off I go. My questions are
> 1. Is there an easy way to move selections to the exact edge of the
> canvas ? I end up zooming in and twitching the mouse till I get 0,0. Is
> there a quicker way ?

Here's a script to do what you want, I think.  Just copy it into your
~/.gimp-1.2/scripts directory, refresh the script-fu collection
(Toolbox/Xtns/Script-Fu/Refresh) and you're ready to go.  You'll find
the script in Image/Script-Fu/Utilities.

---------- cut here --------------
;;; precision-select.scm
;;;  Jeff Trefftzs <[EMAIL PROTECTED]>

;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2 of the License, or
;;; (at your option) any later version.
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

;;; Define the function:

(define (script-fu-precision-select inImage inLayer
                                    inXorig inYorig
                                    inWidth inHeight)

  (gimp-rect-select inImage 
                    inXorig inYorig
                    inWidth inHeight
                    FALSE               ; No feathering


 _"<Image>/Script-Fu/Utils/Precision Selection"
 "Precision select carefully places a rectangular selection\
of the user-specified size at the user-specified coordinates.\
I decided this would be useful after trying for the nth time\
to select just the square front of a CD cover."
 "Jeff Trefftzs"
 "Copyright 2002, Jeff Trefftzs"
 "January 11, 2002"
 SF-IMAGE "The Image" 0
 SF-DRAWABLE "The Layer" 0
 SF-ADJUSTMENT "X origin" '(0 0 9999 1 10 0 1)
 SF-ADJUSTMENT "Y origin" '(0 0 9999 1 10 0 1)
 SF-ADJUSTMENT "Width" '(0 0 9999 1 10 0 1)
 SF-ADJUSTMENT "Height" '(0 0 9999 1 10 0 1)
--------- cut here ----------



Jeff Trefftzs <[EMAIL PROTECTED]>
http://www.tcsn.net/trefftzs                    Home Page
http://gug.sunsite.dk/gallery.php?artist=68     Gimp Gallery
http://trefftzs.topcities.com/                  Photo Gallery 

Gimp-user mailing list

Reply via email to