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

Layering Images in ASP.Net 1.1

Hello,

I am working on a configurator application that needs to have a changing
visual representation of the product being configured. I have a base image
representing the 'core' requirements for the product and the user is able to
select from a variety of optional equipment.

I need to be able to overlay the base image with the corresponding images
for each selected option. This is an asp.net solution for the .Net framework
version 1.1.

Basically, I'd like to select an option, post back to generate the
appropriate image (by overlaying on image on top of the other(s)) and display
the resulting page. Can anyone point me to sample code or a useful tutorial
in this regard?

thanks,
--
Paul
Nov 19 '05 #1
4 1530
You'll have to dynamically generate images on the server using the GDI APIs.
There's a MSDN article on this (for things like PieCharts) here:

http://msdn.microsoft.com/msdnmag/issues/02/02/ASPDraw/

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello,

I am working on a configurator application that needs to have a
changing visual representation of the product being configured. I
have a base image representing the 'core' requirements for the product
and the user is able to select from a variety of optional equipment.

I need to be able to overlay the base image with the corresponding
images for each selected option. This is an asp.net solution for the
.Net framework version 1.1.

Basically, I'd like to select an option, post back to generate the
appropriate image (by overlaying on image on top of the other(s)) and
display the resulting page. Can anyone point me to sample code or a
useful tutorial in this regard?

thanks,


Nov 19 '05 #2
> Basically, I'd like to select an option, post back to generate the
appropriate image (by overlaying on image on top of the other(s)) and display the resulting page. Can anyone point me to sample code or a useful tutorial in this regard?


alternatively, if you have a controlled user space (ie, you know exactly
what browser they will be using and if they have javascript or not) you
could do this on the front-end as well using transparent GIFs and layered
and positioned divs.

I imagine this is also doable via a Flash interface.

-Darrel
Nov 19 '05 #3
Your suggestion is kinda what I had in mind, however, I'm not sure how to
implement it. Can you provide me with a link to a basic implementation of
this concept or a sample solution? I am hoping to avoid using a flash
interface - the business team doesn't want to require a flash install to use
the solution.

"darrel" wrote:
Basically, I'd like to select an option, post back to generate the
appropriate image (by overlaying on image on top of the other(s)) and

display
the resulting page. Can anyone point me to sample code or a useful

tutorial
in this regard?


alternatively, if you have a controlled user space (ie, you know exactly
what browser they will be using and if they have javascript or not) you
could do this on the front-end as well using transparent GIFs and layered
and positioned divs.

I imagine this is also doable via a Flash interface.

-Darrel

Nov 19 '05 #4
> Your suggestion is kinda what I had in mind, however, I'm not sure how to
implement it. Can you provide me with a link to a basic implementation of
this concept or a sample solution? I am hoping to avoid using a flash
interface - the business team doesn't want to require a flash install to use the solution.


Off the top of my head, you'd do something like this:

- create your images in a image-editor with layers (like photoshop or
fireworks).
- export all your layers as transparent gifs.
- Then, you can simply layer them in your web page by using relative
positioning and z-index css attributes. Ie, position every image at the same
x/y coordinates, but give them all different z-indexes.

Then, just turn off/on each layer as needed either via javascript, or do a
postback and just write out the specific images in the HTML.

-Darrel
Nov 19 '05 #5

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

Similar topics

1
by: news.verizon.net | last post by:
Hi all, I have a website created by others and sort of meshed together. Here are a couple of links... http://www.ibco.net/honours/rc/ See how the navigation bars on the left come in behind this -...
1
by: Matthew White | last post by:
Hi - From a Javascript beginner: I'd like to display an image in a table cell, and in another cell have 3 or 4 checkboxes. Based on the boxes check, I would "overlay" images on top of the...
3
by: vikash | last post by:
Hi, I want to develop a windows based application using .Net 2.0 The application will have the heavy UI and it will have the lots of drawing to do on the form. So can any one give me the...
1
by: Dave Woodwater | last post by:
Hi, I'm trying to build a camera control menu bar for a web application. I've gotten everything to work in IE6/7 but Firefox as a little bug. Actually, it's probably IE that handles it...
4
toxicpaint
by: toxicpaint | last post by:
Hi, can anyone give me a hand. I'm currently displaying 4 random images at the top of a page. I did this using an array of 35 pictures and then writing them to page. The problem I have is that in...
6
by: ravis64 | last post by:
Hi, I basicaly have a form of 9 images, spread in a 3 x 3 grid. What i need to do is give each image a border and on some of the borders they need to over lap the image a bit in the bottom corner...
5
by: lightgram | last post by:
Hi I have a problem, which after browsing through Google, seems to be fairly common. However having tried most suggestions I am still getting the problem. I have a menu bar across the top...
8
by: dougawells | last post by:
I am having issues using layers due to the different ways that different browsers display them. I need to be able to layer some images together as they work independently of each other. For example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.