473,668 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1531
Casey,

Take a look at the ImageUpload project on my website,
www.aboutfortunate.com. Specifically look at the ImageDelivery.a spx 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.y ou> wrote in message
news:OX******** ********@TK2MSF TNGP09.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.asp x">
<AREA SHAPE="circle" COORDS="124,58, 8"
HREF="pick2.asp x">
<AREA SHAPE="poly" COORDS="221,34, 238,37,257,32,2 78,44,284,60,
281,75,288,91,2 67,87,253,89,23 7,81,229,64,228 ,54"
HREF="pick3.asp x">
</MAP>

-- bruce (sqlwork.com)
"C Williams" <no****@thank.y ou> wrote in message
news:OX******** ********@TK2MSF TNGP09.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
4941
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 when I pass the mouse over the logo. Is there a way to replace a link by an image that will still be clickable? Thanks, -- Kerberos.
5
3131
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 clickable when you move over the chevron. In Firefox, the link works as expected - the full image can be clicked. Does anyone know what's causing this bug? My XHTML valid, although my
9
9588
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. I know how to show the information based on another part of the page, but I don't know how to make a map of a country clickable ( meaning, clicking different part of the map to show info on the page). How can I make a map of a country with...
9
2716
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 color to indicate to the user which cells are clickable). (I think I could achieve this by adding an image (with attached hyperlink) to each clickable cell but since this is a large table (7 x 30) I think this might be a slow solution). ...
1
5715
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 to close when clicking anywhere on it. Both the background of the window and the caption are produced by Javascript, but the probleme is not here.
3
2138
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 else on the parent is clicked? I tried to override OnLostFocus and invalidate but that doesn't seem to do it. 2) the control, like i said is a label, how do i override the hotkey behavior. I.e, if my text is &Help, when I do Alt-H on the parent,...
3
5555
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 clickable button *inside* another image. I don't know if this is along the right lines but the following code puts a image inside another image. Perhaps I could then make im2 clickable or is it just not possible? Any help would be very much
3
2178
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 second navigation bar was added, the clickable area on the 6 links in the top row became greatly reduced when viewed in Firefox 2.0.0.9. It seems to work properly in IE 7. Essentially, if you hold your mouse over the center of the text link, it will...
2
7050
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 the entire block is clickable, not just the text. I've sorta got it so it's clickable, just some parts of the button I still can't click on. The website is http://pdhtdev.johnabbott.qc.ca/students/2010/james_mann/portfolio/index.htm The css...
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8889
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
8790
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
8650
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...
0
7391
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4202
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
2781
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
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
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.