OfficeIccColorProfile
OfficeIMO.Drawing
Provides bounded, dependency-free conversion for supported ICC color profiles.
Inheritance
- object
- OfficeIccColorProfile
Remarks
Supports RGB and Gray matrix/TRC input profiles and RGB, CMYK, and three-to-eight-channel LUT8/LUT16 input transforms, legacy LUT8/LUT16 output transforms, and bounded ICC v4 AToB/BToA transforms using the mAB/mBA types. Multichannel profiles support input conversion only. Unsupported transform types are rejected for explicit fallback.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 1
Methods
public bool TryConvert(IReadOnlyList<double> components, out OfficeColor color) #Attempts to convert device components through the ICC profile to sRGB.
Parameters
- components System.Collections.Generic.IReadOnlyList<double>
- color OfficeIMO.OfficeColor
Returns
boolpublic bool TryConvert(IReadOnlyList<double> components, OfficeIccRenderingIntent renderingIntent, out OfficeColor color) #Attempts to convert device components through the ICC profile to sRGB using the requested rendering intent.
Parameters
- components System.Collections.Generic.IReadOnlyList<double>
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- color OfficeIMO.OfficeColor
Returns
boolpublic bool TryConvertToDevice(OfficeColor color, out double[] deviceComponents) #Attempts to convert an sRGB color to the profile's device components.
Parameters
- color OfficeIMO.OfficeColor
- deviceComponents double[]
Returns
boolpublic bool TryConvertToDevice(OfficeColor color, OfficeIccRenderingIntent renderingIntent, out double[] deviceComponents) #Attempts to convert an sRGB color to the profile's device components using the requested rendering intent.
Parameters
- color OfficeIMO.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- deviceComponents double[]
Returns
boolpublic bool TryConvertToDevice(OfficeColor color, double[] destination) #Attempts to write the profile's device components into a caller-provided destination.
Parameters
- color OfficeIMO.OfficeColor
- destination double[]
Returns
boolpublic bool TryConvertToDevice(OfficeColor color, OfficeIccRenderingIntent renderingIntent, double[] destination) #Attempts to write the profile's device components into a caller-provided destination using the requested rendering intent.
Parameters
- color OfficeIMO.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- destination double[]
Returns
boolpublic static bool TryCreate(byte[] profileBytes, out OfficeIccColorProfile? profile) #Attempts to parse a bounded supported ICC input profile.
Parameters
- profileBytes byte[]
- profile OfficeIMO.Drawing.OfficeIccColorProfile?
Returns
boolpublic bool TrySoftProof(OfficeColor color, out OfficeColor proofedColor) #Attempts to soft-proof an sRGB color through the profile's output and input transforms.
Parameters
- color OfficeIMO.OfficeColor
- proofedColor OfficeIMO.OfficeColor
Returns
boolpublic bool TrySoftProof(OfficeColor color, OfficeIccRenderingIntent renderingIntent, out OfficeColor proofedColor) #Attempts to soft-proof an sRGB color through the profile's output and input transforms using the requested rendering intent.
Parameters
- color OfficeIMO.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- proofedColor OfficeIMO.OfficeColor
Returns
boolInherited Methods
Properties
public int ComponentCount { get; } #Gets the number of device components accepted by this profile.
public OfficeIccProfileClass ProfileClass { get; } #Gets the device class declared by the ICC profile header.
public bool HasOutputTransform { get; } #Gets whether the profile exposes a supported PCS-to-device output transform.