API Reference
OfficeIccColorProfile
Provides bounded, dependency-free conversion for supported ICC color profiles.
Inheritance
- Object
- OfficeIccColorProfile
Remarks
Supports RGB and Gray matrix/TRC input profiles, RGB and CMYK LUT8/LUT16 input transforms, legacy LUT8/LUT16 output transforms, and bounded ICC v4 AToB/BToA transforms using the mAB/mBA types. Unsupported transform types are rejected for explicit fallback.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
Methods
public Boolean TryConvert(IReadOnlyList<Double> components, out OfficeColor color) #BooleanAttempts to convert device components through the ICC profile to sRGB.
Parameters
- components System.Collections.Generic.IReadOnlyList{System.Double}
- color OfficeIMO.Drawing.OfficeColor@
public Boolean TryConvert(IReadOnlyList<Double> components, OfficeIccRenderingIntent renderingIntent, out OfficeColor color) #BooleanAttempts to convert device components through the ICC profile to sRGB using the requested rendering intent.
Parameters
- components System.Collections.Generic.IReadOnlyList{System.Double}
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- color OfficeIMO.Drawing.OfficeColor@
public Boolean TryConvertToDevice(OfficeColor color, out Double[] deviceComponents) #BooleanAttempts to convert an sRGB color to the profile's device components.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- deviceComponents System.Double[]@
public Boolean TryConvertToDevice(OfficeColor color, OfficeIccRenderingIntent renderingIntent, out Double[] deviceComponents) #BooleanAttempts to convert an sRGB color to the profile's device components using the requested rendering intent.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- deviceComponents System.Double[]@
public Boolean TryConvertToDevice(OfficeColor color, Double[] destination) #BooleanAttempts to write the profile's device components into a caller-provided destination.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- destination System.Double[]
public Boolean TryConvertToDevice(OfficeColor color, OfficeIccRenderingIntent renderingIntent, Double[] destination) #BooleanAttempts to write the profile's device components into a caller-provided destination using the requested rendering intent.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- destination System.Double[]
public static Boolean TryCreate(Byte[] profileBytes, out OfficeIccColorProfile profile) #BooleanAttempts to parse a bounded supported ICC input profile.
Parameters
- profileBytes System.Byte[]
- profile OfficeIMO.Drawing.OfficeIccColorProfile@
public Boolean TrySoftProof(OfficeColor color, out OfficeColor proofedColor) #BooleanAttempts to soft-proof an sRGB color through the profile's output and input transforms.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- proofedColor OfficeIMO.Drawing.OfficeColor@
public Boolean TrySoftProof(OfficeColor color, OfficeIccRenderingIntent renderingIntent, out OfficeColor proofedColor) #BooleanAttempts to soft-proof an sRGB color through the profile's output and input transforms using the requested rendering intent.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent
- proofedColor OfficeIMO.Drawing.OfficeColor@
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Int32 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 Boolean HasOutputTransform { get; } #Gets whether the profile exposes a supported PCS-to-device output transform.