INFO: Color Management in IE4 Using ColorInfo Filter (182484)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01

This article was previously published under Q182484

SUMMARY

Color Management in Internet Explorer 4.0 (IE4) is supported via the ColorInfo filter.

MORE INFORMATION

The ColorInfo filter takes two parameters:

ColorInfo(ColorSpace=sRGB,Intent=0)

ColorSpace can be "sRGB" or a fully qualified local file name of an ICM color profile.

Intent values can be one of the following:

  • 0 (default) for "Images" - Maintain contrast. Used for photographs and natural images
  • 1 for "Graphics" - Maintain colormetric match. Used for graphic designs and named colors.
  • 2 for "Business" - Maintain saturation. Used for business charts and other situations in which undithered colors are required.
Here is an example HTML file that uses the ColorInfo filter:
   <html>
   <body>
   <img src=test.gif><br>
   <img style="filter: ColorInfo(ColorSpace=sRGB, Intent=0)"
    src=test.gif><br>
   <img style="filter: ColorInfo(ColorSpace=sRGB, Intent=1)"
    src=test.gif><br>
   <img style="filter: ColorInfo(ColorSpace=sRGB, Intent=2)"
    src=test.gif><br>
   <img style="filter:
    ColorInfo(ColorSpace=C:\WINDOWS\SYSTEM\COLOR\other-color-profile.icm,
    Intent=0)" src=test.gif><br>
   </body>
   </html>
				
NOTE: For sRGB, the "sRGB Color Space Profile.icm" file is required in the \Windows\System\Color folder.


Modification Type:MajorLast Reviewed:10/2/2003
Keywords:kbinfo KB182484