# OfficeIccRasterConverter

Converts bounded, tightly packed 8-bit RGB, CMYK, or three-to-eight-channel device samples to opaque sRGB.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeIccRasterConverter.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeIccRasterConverter.cs#L76)

**Modifiers**

static

Converts bounded, tightly packed 8-bit RGB, CMYK, or three-to-eight-channel device samples to opaque sRGB.

## Inheritance

- object
- OfficeIccRasterConverter

## Remarks

This API accepts raw device samples and ICC bytes supplied by the caller. It does not extract metadata from encoded images, alter the source buffer, or change image optimizer metadata reports. Alpha, planar samples, higher bit depths, and implicit device-color conversion are outside this contract.

Filter members 

Show inherited

## Methods

`public static OfficeIccRasterConversionStatus TryConvertToSrgb(byte[] deviceSamples, int width, int height, byte[] profileBytes, OfficeIccRasterConversionOptions? options, out OfficeRasterImage? image)` [#](#method-tryconverttosrgb-byte-int32-int32-byte-officeimo-drawing-officeiccrasterconversionoptions-officeimo-drawing-officerasterimage)

[OfficeIccRasterConverter.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeIccRasterConverter.cs#L76)

Attempts one complete conversion, returning a typed rejection instead of partial pixels.

Parameters

**deviceSamples byte[] required**

**width int required**

**height int required**

**profileBytes byte[] required**

**options OfficeIMO.Drawing.OfficeIccRasterConversionOptions? required**

**image OfficeIMO.Drawing.OfficeRasterImage? required**

Returns

`OfficeIccRasterConversionStatus`

## 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?`

<!-- PowerForge markdown artifact sha256:3DD6DB9161E23B69F07FD11FE7F2FF7E038CCD7AC768BDC2E1127723A9A439DC -->
