EPSON — 5.4.3 Controlling ICM

5.4.3 Controlling ICM ICM API in Windows OS is used to achieve ICM. The steps from displaying menus to applying ICC profiles and printing are shown below. (1) Display menus. 1) Use GetColorDirectory() to acquire the path to the directory where the profile is saved. 2) Use EnumColorProfiles() to list the monitor class profiles. 3) Use EnumColorProfiles() to list the printer class profiles. (2) Select menu items to determine the input profile, output profile, and intent. 1) If auto select is selected for the output profile, determine the output profile suitable for media coating type and print speed that are currently configured. (3) Apply the ICC profile to an image.

1) Use OpenColorProfile() to acquire a handle for the profile 2) Use CreateMultiProfileTransform() to generate a color transform object from the I/O profiles. 3) Use TranslateBitmapBits() to transform colors from the color transform object created in (2) above and the current image (bitmap). If the image file is compressed, decompress it to a bitmap file in advance. 4) Use DeleteColorTransform() to discard the color transform object that was generated. 5) Use CloseColorProfile() to release the handle for the profile. (4) Compress the image (after color transform) to a png file, and transmit it to the printer. Epson ESC/Label Application Development Guide CW-C8000 Series Rev. B Page 65