public byte[] InputProfileData { get; set; } InputProfileData # get and set (ConversionParameters)
A byte array that contains information about the input memory profile to be used as the input profile.
using Leadtools;using Leadtools.Codecs;using Leadtools.ColorConversion;public void InputProfilePropertyExample(){// StartUp the ColorConversion.RasterColorConverterEngine.Startup();// Rgb and Cmyk color buffer arraysbyte[] rgbColor = new byte[3];byte[] cmykColor = { 100, 100, 100, 100 };// Initialize a new ConversionParameters class object.ConversionParameters convParams = new ConversionParameters();// Set the Method propertyconvParams.Method = ConversionMethodFlags.UseIcc | ConversionMethodFlags.UseBuiltIn;// Set the ActiveMethod property.convParams.ActiveMethod = ConversionMethodFlags.UseBuiltIn;// Initialize the White property classConversionWhitePoint whitePoint = new ConversionWhitePoint();// Set the WhitePoint propertywhitePoint.WhitePoint = ConversionWhitePointType.D50;convParams.WhitePoint = whitePoint;// Set the InputProfile propertyconvParams.InputProfile = Path.Combine(LEAD_VARS.ImagesDir, "MyCmykProfile.icm");// Set the OutputProfile propertyconvParams.OutputProfile = Path.Combine(LEAD_VARS.ImagesDir, "MyRgbProfile.icm");// Set the DestinationInputTable propertyconvParams.DestinationInputTable = string.Empty;ConversionCmykParameters cmykParameters = new ConversionCmykParameters();cmykParameters.GcrLevel = 175;cmykParameters.Mask = ConversionCmykMask.Gcr;convParams.CmykParameters = cmykParameters;// Initialize a new Converter objectRasterColorConverterEngine MYColorConverter = new RasterColorConverterEngine();try{// Start conversionMYColorConverter.Start(ConversionColorFormat.Cmyk, ConversionColorFormat.Rgb, convParams);// Convert the cmyk color to rgbMYColorConverter.Convert(cmykColor, 0, rgbColor, 0, 1, 1, 0, 0);//change the active method for conversionconvParams.Method = ConversionMethodFlags.ChangeActiveMethod;//switch to ICC conversion methodconvParams.ActiveMethod = ConversionMethodFlags.UseIcc;//update the conversion stateMYColorConverter.SetParameters(convParams);// convert the image bufferMYColorConverter.Convert(cmykColor, 0, rgbColor, 0, 1, 1, 0, 0);// Stop conversionMYColorConverter.Stop();}catch (Exception ex){Debug.WriteLine(ex.Message);}RasterColorConverterEngine.Shutdown();}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
