473,699 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mouse Click Co-ordinates

I am using a server-side component for resizing/cropping images. Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates. It seems to me that the
easiest way to do this is to try to partially emulate an image editing app's
Marquee tool, where a user clicks on an image to define the top left point
and drags and releases at the bottom right point. My questions are:

1. What's the best way to display the image to get these measurements? (It's
own div? Iframe? As an ImageMap? Other way?)
2. How do I capture the two pairs of coordinates? (Having got them, I'm
comfortable passing them server-side as QueryString values)

I expect users will have IE 5.5 +, Firefox 1.5 +, Safari

Thanks all

--
Mike
Jul 29 '06 #1
2 1650
Mike wrote:
I am using a server-side component for resizing/cropping images. Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates.
http://koivi.com/image-crop-selection/
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 29 '06 #2

"David Dorward" <do*****@yahoo. comwrote in message
news:ea******** ***********@new s.demon.co.uk.. .
Mike wrote:
>I am using a server-side component for resizing/cropping images.
Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates.

http://koivi.com/image-crop-selection/

Thanks David. It's nice - but your suggestion helped me revise my googling
more successfully. I found this one (among 2 or 3 others):

http://www.defusion.org.uk/demos/060519/cropper.php

It's the doggy's dangly bits :-)

--
Mike
Jul 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3823
by: Pete Mann | last post by:
Hi Could anyone tell me if there is a command which will recongnise a simple mouse click anywhere on the screen, I can do it ok for a command box etc etc but would like to be able to simply click a mouse button from anywhere on the screen. Thanking You In Advanced Pete
3
3145
by: Jun | last post by:
How can I catch onMouseDown event on a frame/frameset? When I right mouse click at the border area of a frame, I can still get the Window's standard popup menu. How can I catch the mouse click to pop up my own menu when use click at the border? thanks
2
4910
by: Benoit Martin | last post by:
Is it possible to detect a mouse click from a .net service. I want a process running in the background that will detect when the user clicks the mouse button (anywhere on the screen) and executes an action accordingly. All the event handlers for the mouse that I see are for Windows Forms. Is there a way to do it without any controls on the screen? Thanks
4
13252
by: Andreas Müller | last post by:
Hi all, I need to wait for the user to click the mouse: // some code before WaitForMouseClick();// Wait until the user clicks the mouse // go on doing something Under Win32 using C++, you could poll the mouse buttons states. Is this possible using C# and .NET?
1
14716
by: Sakharam Phapale | last post by:
Hi All, How to capture Mouse Single click and mouse double click event on Commnad Button. I am doing as follows. Private void Button1_MouseUp(Object sender, System.Windows.Forms.MouseEventArgs e) {
25
2683
by: Romanise | last post by:
An LCD monitor with keyboard and mouse capabilities on it, thinnest possible, to hang on rack-door can be a boon for expensive spaces of datawarehouses. Has anyone come across one? Maybe someone would go into manufacturing it. £800 Dell product I am told occupies equivalent of two server space in a rack.
7
3587
by: Steve | last post by:
How do you disable the mouse right click to prevent pop-up window? Or if I want to have cut/copy/paste on pop-up window use same code as my custom cut/copy/paste that are triggered by toolstrip buttons? Thanks Steve
2
18881
by: John | last post by:
Ok, something that I thought would be easy is giving me fits. Using .NET 2.0 and C# I've added a Trackbar to a form. Set some values: trackVolume.Maximum = 100; trackVolume.Minimum = 0; trackVolume.TickFrequence = 25; Then I added an event for the value:
7
6688
by: Barkingmadscot | last post by:
I am try to find out how to check if the mouse button is held down. The e.click =2 works, it allows me to enter the double click double. I what the single click to do some different and then a click and hold to allow the drag and drop
0
8622
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8892
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4382
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3062
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.