LEADTOOLS 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 and will be obtained by calling RasterCodecs.LoadCmykPlanes method. Alpha channel information will be loaded into the 5th page, if present in the input file. If the TIFF CMYK format doesn't include the source file, load the image normally by calling RasterCodecs.Load method, then obtain the CMYK planes by using ColorSeparateCommand.
To paint the planes, call RasterImagePainter.PaintCmykPlanes method.
To save the planes as TIFF CMYK, call RasterCodecs.SaveCmykPlanes method.
To save as another format, create a BGR Image using ColorMergeCommand or by calling RasterColorConverterEngine.ConvertCmykPlanes method, then save the image by calling RasterCodecs.Save method.
LEADTOOLS provides two methods to convert the CMYK input data to BGR:
When loading a CMYK file by calling one of the load methods (RasterCodecs.Load or RasterCodecs.LoadAsync), the conversion will be performed automatically using CMYK profile if:
The conversion can be performed using custom CMYK ICC profile in the following manner:
NOTE
The Image can be manipulated by manipulating each plane independently. Some transformations should be performed to all planes, while others should be performed to a particular plane. Examples:
* Spatial transformation like flip, resize, rotate, etc. should be performed on all planes. Otherwise, unexpected results may occur.
* Other transformations should be done to a particular plane. For example:
K plane controls the amount of black ink. Changing the intensity of the K plane will darken or lighten the bitmap.
Changing the brightness of one of the other planes will change the color rather than the image brightness.To have a better understanding of what is needed to achieve a particular result, this requires studying how the CMYK planes are combined to make the final image.
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