Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeIccColorProfile

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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

TryConvert 2 overloads
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> required
color OfficeIMO.OfficeColor required

Returns

bool
public 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> required
renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent required
color OfficeIMO.OfficeColor required

Returns

bool
TryConvertToDevice 4 overloads
public bool TryConvertToDevice(OfficeColor color, out double[] deviceComponents) #

Attempts to convert an sRGB color to the profile's device components.

Parameters

color OfficeIMO.OfficeColor required
deviceComponents double[] required

Returns

bool
public 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 required
renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent required
deviceComponents double[] required

Returns

bool
public bool TryConvertToDevice(OfficeColor color, double[] destination) #

Attempts to write the profile's device components into a caller-provided destination.

Parameters

color OfficeIMO.OfficeColor required
destination double[] required

Returns

bool
public 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 required
renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent required
destination double[] required

Returns

bool
public static bool TryCreate(byte[] profileBytes, out OfficeIccColorProfile? profile) #

Attempts to parse a bounded supported ICC input profile.

Parameters

profileBytes byte[] required
profile OfficeIMO.Drawing.OfficeIccColorProfile? required

Returns

bool
TrySoftProof 2 overloads
public 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 required
proofedColor OfficeIMO.OfficeColor required

Returns

bool
public 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 required
renderingIntent OfficeIMO.Drawing.OfficeIccRenderingIntent required
proofedColor OfficeIMO.OfficeColor required

Returns

bool

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.