Solved

Changing Image Transparency color (HTML/JavaScript/VbScript)

Posted on 2003-11-16
4
2,375 Views
Last Modified: 2008-03-10
Hi

My scenario :
1. I have an HTML page ( resides within a Internet Browser Control in VC++ application).
2. In the HTML I dynamically embed images (IE - client side only).
3. Some of the images come from another device in which transparency pixels are denoted by the magenta (#FF00FF) color.
4. 1+2+3 = The result looks kinda nasty...

My insights :
1. I need to change the color by which IE indexes transparency.
2. The most obvious solution will be to use IE's filters.
3. I could not find any filter that performs that trick.
4. There is one filter "ICMFilter" that can change color profiles on a specific IMG, but I couldn't understand if/how I can use it to change transparency behaviour.
5. As this whole Scenario runs on a controlled environment, is is possible to add a custom filter that CAN do that trick.

I would love to hear any comments to my Insights and maybe some other methods I couldn't think of.

Thanks A LOT


p.s At the moment i have only the initial 125 points. If I will recieve a good solution I will buy extra points and award another 500 pts.
0
Comment
Question by:variant7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 125 total points
ID: 9759300
try:
<style>
body {filter: chroma (color=#ff00ff); }
</style>

In the head of the page.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9759341
BTW,

If that solves it, there is no need for additional points.  125 seems appropriate for the level of difficulty.

Cd&
0
 
LVL 2

Author Comment

by:variant7
ID: 9762023
Thanx Cd& !

That solved it. for some reason I skipped that filter when reviewing it, guessed it had to do something with a Chrome effect. :-)

Ilan
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9763799
Glad I could help.  Thanks for the A. :^)

Cd&
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question