INFO: Color Management in IE4 Using ColorInfo Filter
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.
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Jason Strayer, Microsoft Corporation
Additional query words:
Keywords : AXSDKIEScripting
Version : WINDOWS:4.0,4.01
Platform : WINDOWS
Issue type : kbinfo