←Select platform

ConversionParameters Class

Summary
Provides information about the conversion options.
Syntax
C#
C++/CLI
Python
public class ConversionParameters 
public ref class ConversionParameters  
class ConversionParameters: 
Remarks

In the case the conversion is from CMYK to RGB or RGB to/from CIELab, and the ActiveMethod property value is set to ConversionMethodFlags.ConversionMethodFlags.UseCustomEmulationTables, the user should specify the full path to the images in the DestinationInputTable property. The following table shows the image dimensions to be used in the emulation tables that are passed to the DestinationInputTable property.

Conversion Image Dimensions
CMYK to RGB 289x289 RGB TIF image.
RGB to CIELab 190x190 CIELab TIF image.
CIELab to RGB 190x190 RGB TIFF image.

There are cmyk_src_image.tif, rgb_src_image.tif, and lab_src_image.tif images distributed with the library. They can be used and converted, using any tool, to their RGB, CIELab, and RGB equivalents respectively. When using the custom ICC engine (ConversionMethodFlags.ConversionMethodFlags.UseCustomIcc set in the Method property), there are two ways to specify the source and/or destination profiles:

Any combination of the input and output profiles is allowed. For example, a file source profile can be used with a memory destination profile. If all four options for source and destination profiles are set (InputProfile, OutputProfile, InputProfileData and OutputProfileData), the memory profiles get the highest priority. Therefore, if you set both InputProfile and InputProfileData, only the source specified in InputProfileData will be used. In addition, if only a source profile is provided, either file or memory, without a destination profile, the ICC engine will use a default destination profile. Note that LEADTOOLS also supports loading TIFF CMYK files without converting the data to BGR. This is done by loading each CMYK plane as a separate page in an Image using Leadtools.Codecs.RasterCodecs.LoadCmykPlanes(System.IO.Stream,System.Int32,System.Int32). To save the planes as TIFF CMYK, call Leadtools.Codecs.RasterCodecs.SaveCmykPlanes(Leadtools.RasterImage,System.IO.Stream,Leadtools.RasterImageFormat,System.Int32,System.Int32,Leadtools.Codecs.CodecsSavePageMode). For more information, refer to Handling CMYK Files as Separate Images.

Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ColorConversion Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.