473,326 Members | 2,134 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,326 software developers and data experts.

image map, custom buttons, etc.

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 wondering what the best way to determine where on a dartboard the
user clicked. An image map or custom buttons for each cell.

if image map how would I map out the cells?

Oct 17 '05 #1
2 1906
If I were doing it, I'd just make the thing a bitmap, get the cartesian
coordinates from the hit test, remap from a cartesian coordinate system
(X,Y) polar system (angles & lenghts) and figure out where the user hit
based on angle & distance. There is computational overhead in changing the
coordinate system, but it's cleaner from a logical standpoint in that you
are converting the coordinate to the dartboard's "native" system.
Oct 17 '05 #2
Ahhh, right. The bull would be 0,0. Then it's just a matter of trig
and geometry to figure out where on the board the user clicked. So
image map would be easier.

Oct 17 '05 #3

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

Similar topics

1
by: Mike Albrecht | last post by:
Hello Group, Pardon any cross posting. We wanted to replace the standard submit buttons on a web form with custom 'image' buttons. Here's the code I used: <input type="image"...
1
by: addi | last post by:
All, I need some help with replacing standard Input buttons with image files. Currently, my code is as follows: <td colspan="2" align="left"> <input type="submit" name="cancel" style="COLOR:...
6
by: Marek Mänd | last post by:
Can the <button><img></button> mutated via CSS so, that the inner image of <BUTTON> would entirely visually become the button itsself - I mean without the outer elements borders and so... ...
1
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
3
by: David | last post by:
Hi, I am very new in the asp.net realm so this may be a very simple question for most of you. I want to put a little image icon in every button on my web form but there is no attribute in...
1
by: Joachim | last post by:
I can't understand why all available tutorials uses ordinary buttons (no custom images) to show how it's possible to send information back to the server with ASP.NET. This is all I want to do (or...
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: kayahr | last post by:
Hi there, I have a strange problem in Internet Explorer (IE6 and IE7). I'm writing a JavaScript application which allows the user to edit a photo composition. So when the user selects a photo then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.