INFO: Color Management in IE4 Using ColorInfo Filter

Last reviewed: March 17, 1998
Article ID: Q182484
The information in this article applies to:
  • Microsoft Internet Explorer (Programming), versions 4.0, 4.01

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.

Keywords          : AXSDKIESripting
Technology        : kbInetDev
Version           : WINDOWS:4.0,4.01
Platform          : WINDOWS
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 17, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.