# OfficeIconEncoder

Encodes multi-resolution Windows icons using independently compressed PNG entries.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`b87f83792369` with working tree changes

**Source**

[OfficeIconEncoder.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeIconEncoder.cs#L6)

**Modifiers**

static

Encodes multi-resolution Windows icons using independently compressed PNG entries.

## Inheritance

- object
- OfficeIconEncoder

Filter members 

Show inherited

## Methods

`public static byte[] Encode(IReadOnlyList<OfficeRasterImage> images, OfficeRasterEncodingOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-encode-collections-generic-ireadonlylist-officeimo-drawing-officerasterimage-officeimo-drawing-officerasterencodingoptions-threading-cancellationtoken)

[OfficeIconEncoder.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeIconEncoder.cs#L6)

Creates an ICO container from one to 256 images, each between one and 256 pixels on each axis.

Parameters

**images System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeRasterImage> required**

**options OfficeIMO.Drawing.OfficeRasterEncodingOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`byte[]`

## 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:3A36CDB4D4D06EE5077395CA89395FB368FDD1DC721EDA36446F6967ABAFDE13 -->
