RSS/Atom feed Twitter
Site is read-only, email is disabled

Mouse Coordinates for gimp Script or Plug-in

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Mouse Coordinates for gimp Script or Plug-in Kevin Myers 14 Oct 16:16
Mouse Coordinates for gimp Script or Plug-in Kevin Myers 16 Oct 03:18
017201c273b0$ad972f80$66c8a... 07 Oct 20:15
Kevin Myers
2002-10-14 16:16:08 UTC (over 21 years ago)

Mouse Coordinates for gimp Script or Plug-in

Hello,

I would like to develop some gimp scripts and/or plug-ins where I need to obtain the coordinates from a user's mouse click within the image. This might preferably be the image coordinates of the mouse when the user right clicked to get the pop-up menu, or could instead perhaps be in response to a request to click within the image from the script or plug-in.

The scripts that I would like to develop are related to automatic digitizing of values from scanned images of hardcopy documents. It's critical that the user be able to click within the image to identify the points that are needed to translate raw image coordinates into the coordinate system that they are working in.

Does anyone out there know if/how there is any way to obtain the coordinates of a mouse click via a gimp script or plug-in? If this can be done, then I believe that it would allow gimp to serve as the basis for a number of power image analysis tools that require user specification of image coordinates.

Thanks in advance for any help!

Kevin M. Round Rock, Texas

Kevin Myers
2002-10-16 03:18:16 UTC (over 21 years ago)

Mouse Coordinates for gimp Script or Plug-in

Hi folks -

The other day I sent the following message to both the gimp users and gimp developers lists, hoping to determine whether there is any way to obtain image coordinates from a mouse click in a gimp plug-in. So far I haven't received a single reply. Are there really any of you out there??? :-) Even if you don't know or can't answer my question, it might be nice to receive a few replies anyway so I can at least confirm that my message actually got through ok.

If there is presently no way for a gimp plug-in to obtain mouse click image coordinates (either at point of menu invocation or later), then I would like to submit this as a suggestion to be considered for a future release.

Thanks. s/KAM

----- Original Message -----
From: "Kevin Myers"
To: "gimp users"
Sent: Monday, October 14, 2002 9:16 AM Subject: [Gimp-user] Mouse Coordinates for gimp Script or Plug-in

Hello,

I would like to develop some gimp scripts and/or plug-ins where I need

to

obtain the coordinates from a user's mouse click within the image. This might preferably be the image coordinates of the mouse when the user

right

clicked to get the pop-up menu, or could instead perhaps be in response

to

a

request to click within the image from the script or plug-in.

The scripts that I would like to develop are related to automatic

digitizing

of values from scanned images of hardcopy documents. It's critical that

the

user be able to click within the image to identify the points that are needed to translate raw image coordinates into the coordinate system

that

they are working in.

Does anyone out there know if/how there is any way to obtain the

coordinates

of a mouse click via a gimp script or plug-in? If this can be done,

then

I

believe that it would allow gimp to serve as the basis for a number of

power

image analysis tools that require user specification of image

coordinates.

Thanks in advance for any help!

Kevin M. Round Rock, Texas