473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to find an image based upon an x-y screen coordinate

1
I am working on an iPhone application which uses a version of safari (UIWebView) to display web pages. I want to be able to capture images shown on the webview. To do so, I can capture a "touch event" which will give me an x-y coordinate. To find the correct image, I need to be able to scan all the image tags in the web page and determine which image tag encompasses the point captured from the iphone touch event.

It turns out that the ability to execute a java script against the html page is provided in the UIWebView, so if a javascript procedure can either find the image based upon an inputed point or return a list of the images with x-y point locations and their height and widths, I should be able to do what I want.

Your help is much appreciated.

Jim
Mar 22 '10 #1
1 2651
gits
5,390 Expert Mod 4TB
never developed something for the iPhone but i think your approach seems a bit weired ... just bind the events to the page's elements itself ... probably this link helps ...

kind regards
Mar 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Tony Gahlinger | last post by:
I'm using my browser (Mozilla/5.0 Linux i686 Gecko/20031007 Firebird/0.7) to do some client-side image processing. I want to capture the sequence of coordinates a user clicks on in xxx.jpg in the...
2
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
2
by: mike_newsgroups | last post by:
hello, I want to be able to create an image from asp where I: 1) paste in an image at a given coordinate 2) draw a line from one coordinate to another 3) write text at a given coordinate ...
2
by: SirPoonga | last post by:
What would you suggest I do for the following problem. I want to make an application (vb.net or c#) that has a picture of a dartboard and you can click on certain cells of the dartboard. I am...
3
by: Chris | last post by:
Hi, I need to get an image of a control (ListView) so i can save it to a file. It's pretty easy to get the Graphics with the CreateGraphics() function on every control, but I don't know how I...
30
by: Elhanan | last post by:
hi all i have a question in desgning a form.. the application in question is something a indexing station. the user in this indexing station views a document in pdf/tiff format on the right...
7
by: Georges Bessis | last post by:
The image I set as background are left at original size. In a picturebox, I can decide to strech the image. Can I do that to fill my background ? Regards GB
12
by: Charlie King | last post by:
As I understand it, the use of FIR* to replace heading tags with images in visually enabled CSS browsers is now frowned upon on the basis that some screen readers will *nor* read back text that is...
3
by: wolfing1 | last post by:
Normally I would do something like if request.form("submitbutton.x") <"" then .... end if But I found a problem when the browser uses the 'alt text' instead of the image (when the image is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.