Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Layering Images in ASP.Net 1.1

Reply
Thread Tools

Layering Images in ASP.Net 1.1

 
 
=?Utf-8?B?UGF1bCBLZWVnc3RyYQ==?=
Guest
Posts: n/a
 
      03-28-2005
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
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      03-28-2005
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,
>




 
Reply With Quote
 
 
 
 
darrel
Guest
Posts: n/a
 
      03-28-2005
> 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


 
Reply With Quote
 
=?Utf-8?B?UGF1bCBLZWVnc3RyYQ==?=
Guest
Posts: n/a
 
      03-28-2005
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
>
>
>

 
Reply With Quote
 
darrel
Guest
Posts: n/a
 
      03-28-2005
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Layering pictures. Mr. Magic ASP .Net 3 01-05-2010 09:52 AM
IE -v- FF layering problem no@mail.thanks HTML 7 06-16-2009 11:50 AM
Layering in Photoshop Jimmy Smith Digital Photography 2 01-30-2005 03:02 PM
Layering struts application Grzegorz Stasica Java 1 02-19-2004 02:18 PM
javascript layering? Maybe wrong question.. news.verizon.net Javascript 1 07-09-2003 07:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57