# OfficeIccColorProfile

Provides bounded, dependency-free conversion for supported ICC color profiles.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeIccColorProfile.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L132)

**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

- Method [OfficeIccColorProfile.TryCreate](/api/core/officeimo-drawing-officeicccolorprofile/#method-trycreate-byte-officeimo-drawing-officeicccolorprofile) parameter `profile`

Filter members 

Show inherited

## Methods

TryConvert 2 overloads

`public bool TryConvert(IReadOnlyList<double> components, out OfficeColor color)` [#](#method-tryconvert-collections-generic-ireadonlylist-system-double-officeimo-officecolor)

[OfficeIccColorProfile.cs:271](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L271)

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)` [#](#method-tryconvert-collections-generic-ireadonlylist-system-double-officeimo-drawing-officeiccrenderingintent-officeimo-officecolor)

[OfficeIccColorProfile.cs:279](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L279)

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)` [#](#method-tryconverttodevice-officeimo-officecolor-double)

[OfficeIccColorProfile.Output.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L11)

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)` [#](#method-tryconverttodevice-officeimo-officecolor-officeimo-drawing-officeiccrenderingintent-double)

[OfficeIccColorProfile.Output.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L18)

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)` [#](#method-tryconverttodevice-officeimo-officecolor-double-2)

[OfficeIccColorProfile.Output.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L28)

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)` [#](#method-tryconverttodevice-officeimo-officecolor-officeimo-drawing-officeiccrenderingintent-double-2)

[OfficeIccColorProfile.Output.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L35)

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)` [#](#method-trycreate-byte-officeimo-drawing-officeicccolorprofile)

[OfficeIccColorProfile.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L132)

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)` [#](#method-trysoftproof-officeimo-officecolor-officeimo-officecolor)

[OfficeIccColorProfile.Output.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L45)

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)` [#](#method-trysoftproof-officeimo-officecolor-officeimo-drawing-officeiccrenderingintent-officeimo-officecolor)

[OfficeIccColorProfile.Output.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L52)

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`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int ComponentCount { get; }` [#](#property-componentcount)

[OfficeIccColorProfile.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L109)

Gets the number of device components accepted by this profile.

`public OfficeIccProfileClass ProfileClass { get; }` [#](#property-profileclass)

[OfficeIccColorProfile.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.cs#L112)

Gets the device class declared by the ICC profile header.

`public bool HasOutputTransform { get; }` [#](#property-hasoutputtransform)

[OfficeIccColorProfile.Output.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeIccColorProfile.Output.cs#L5)

Gets whether the profile exposes a supported PCS-to-device output transform.

<!-- PowerForge markdown artifact sha256:94ED79B967419FBD1D31EB0F55498FE330CB1FC996B080747B4ACD8DAE9C5A20 -->
