473,387 Members | 1,485 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,387 software developers and data experts.

custom, clickable image

Hi,

What I am trying to build is an image created on-the-fly to be displayed
in an aspx page. I can do this, using GDI+, no problem. The catch is
that now I would like the ability to carry out customized actions based
on where a user clicks on the image (basically as if rectangles or
circles within the image were hyperlinks, though other actions than
hyperlinking would be nice options).

Is there any way to do this? Even if I could just get click-handling
information, I could work with that, but I haven't yet found much to
work with...

Thanks for any help you can give,

-Casey
Nov 19 '05 #1
2 1519
Casey,

Take a look at the ImageUpload project on my website,
www.aboutfortunate.com. Specifically look at the ImageDelivery.aspx page.
That page takes an image being stored in an in-memory datatable and outputs
it right into a webbrowser. If you do the same thing with your image you
could then make the image part of an imagemap and that would give you the
result you're looking for. The ImageProject may be found by clicking the
"Code Library" link at the top of my site and then clicking the "Image
Upload" button on the left side of the page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"C Williams" <no****@thank.you> wrote in message
news:OX****************@TK2MSFTNGP09.phx.gbl...
Hi,

What I am trying to build is an image created on-the-fly to be displayed
in an aspx page. I can do this, using GDI+, no problem. The catch is
that now I would like the ability to carry out customized actions based on
where a user clicks on the image (basically as if rectangles or circles
within the image were hyperlinks, though other actions than hyperlinking
would be nice options).

Is there any way to do this? Even if I could just get click-handling
information, I could work with that, but I haven't yet found much to work
with...

Thanks for any help you can give,

-Casey

Nov 19 '05 #2
you have two options.

1) use an image button, which will supply the x and y positions on a click
2) use an client image map and image

<IMG SRC="myImageGen.aspx" WIDTH=504 HEIGHT=126
BORDER=0 USEMAP="#myMap">
<MAP NAME="myMap">
<AREA SHAPE="rect" COORDS="0,0,82,126"
HREF="pick1.aspx">
<AREA SHAPE="circle" COORDS="124,58,8"
HREF="pick2.aspx">
<AREA SHAPE="poly" COORDS="221,34,238,37,257,32,278,44,284,60,
281,75,288,91,267,87,253,89,237,81,229,64,228,54"
HREF="pick3.aspx">
</MAP>

-- bruce (sqlwork.com)
"C Williams" <no****@thank.you> wrote in message
news:OX****************@TK2MSFTNGP09.phx.gbl...
Hi,

What I am trying to build is an image created on-the-fly to be displayed
in an aspx page. I can do this, using GDI+, no problem. The catch is
that now I would like the ability to carry out customized actions based on
where a user clicks on the image (basically as if rectangles or circles
within the image were hyperlinks, though other actions than hyperlinking
would be nice options).

Is there any way to do this? Even if I could just get click-handling
information, I could work with that, but I haven't yet found much to work
with...

Thanks for any help you can give,

-Casey

Nov 19 '05 #3

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

Similar topics

53
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore...
5
by: Matt Bostock | last post by:
Hi, Please see: http://www.drfunkenstein.net/catalogue/categories/fancydress/81/go/2/ ...and try clicking on the '< previous' link underneath the costume thumbnails. The link is only...
9
by: Lando Chez | last post by:
Hi I need a map of a country on which a region( part of the map) can be clicked ( or on mouseover) causing, on another part of the same page, the appearance of information regarding the region....
9
by: Paul W | last post by:
I'm using a Table webcontrol to display a 'grid' to the user. Various cells should be 'clickable' by the user (to run javascript). How can I make this happen? (currently I use the background cell...
1
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
The URL is: http://dardel.info/tintin/random.html What I want to achieve: When you click a thumbnail, a window opens with a larger copy of the pict _as the background_. I want the new window...
3
by: Nathan Laff | last post by:
I have a custom Control that is a label, however I inherit from Control... 1) I override onClick and do a DrawFocusRectangle, that works great. How do I clear the focus rectangle once something...
3
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a...
3
by: breakupemail | last post by:
Hello, on my website at http://www.breakupemail.com/ there is a horizontal navigation bar with 6 hyperlinks. Recently, I added a second navigation row below the first, with 2 links. Once this...
2
by: GloStix | last post by:
For some reason, FF likes to put a black underline on all my buttons. No matter what I do, it has the line I've tried displaying as block and cursor, anything.. Also I've been trying to get it so...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.