Sorry, I thought the question was posted in asp.net zone!
Main Topics
Browse All TopicsIn the last question you showed me how to drag 1 image on top of a larger image is it possible to make the draggable image semi transparent so you can see the bottom image through it some what?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The crux of the question:
"...is it possible to make the draggable image semi transparent so you can see the bottom image through it some what?"
My answer:
Yes...and No.
Transparency in .Net is a funny beast. =\
(a) If you want to keep each overlaid image in its own container (picturebox) then you have to place it into its OWN window (borderless form) and literally "float" the image OVER the original form. This allows you to set the Opacity() property of the floating window to less than 1 thus making it semi-transparent. So you would create the new form, set the image and opacity, and then calculate the necessary location to make it appear in the correct position relative to the original form. This obviously brings up a slew of other issues that you must now deal with such as "syncing" the movement of all the overlay windows with the main form when it is moved/resized by the user. The overlay form must be limited to move "within" the confines of the original image as well. You must also setup communication between the forms so that you can make things happen in the main form in response to the overlay forms. The advantage to this approach is that it is relatively easy to MOVE the smaller image around by simply moving the overlay form itself.
(b) Another option is to build ONE composite image consisting of the original image and then the smaller images drawn on top. With Graphics.DrawImage() it is possible to specify an alpha channel which would blend the smaller image on top of the underlying image. The disadvantage here is that it now becomes difficult to seamlessly move the image around in response to user interaction since now the entire image has to be REDRAWN everytime you want to move just one image. This can be a processor intensive operation and may cause some "sluggishness" if you wanted to let a user drag an image around in real time. This could be alleviated by not dragging the actual image around but instead making the user drag around just a rectangle border (think rubberbanding!).
Which approach do you want to explore?...
Basically there isn't an "easy" solution here and integrating either concept into an existing project will probably require a lot of code changes.
So let's take baby steps shall we? I'll post up a simplified example showing how to draw a smaller image with semi-transparency on top of a larger image and then we'll go from there...
Business Accounts
Answer for Membership
by: mohan_sekarPosted on 2009-06-29 at 12:51:45ID: 24739548
Use
filter: alpha(opacity = 100); - for Internet Explorer
-moz-opacity: 1.0; - for Firefox