# OfficeImageOptimizationResult

Immutable result of encoded-image optimization.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeImageOptimizer.cs:161](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L161)

**Modifiers**

sealed

Immutable result of encoded-image optimization.

## Inheritance

- object
- OfficeImageOptimizationResult

## 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.

### Returned or exposed by 1

- Method [OfficeImageOptimizer.Optimize](/api/core/officeimo-drawing-officeimageoptimizer/#method-optimize-byte-officeimo-drawing-officeimageoptimizationrequest-string)

Filter members 

Show inherited

## 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 byte[] Bytes { get; }` [#](#property-bytes)

[OfficeImageOptimizer.cs:161](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L161)

Resulting encoded bytes.

`public OfficeImageOptimizationStatus Status { get; }` [#](#property-status)

[OfficeImageOptimizer.cs:163](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L163)

Optimization outcome.

`public OfficeImageInfo Original { get; }` [#](#property-original)

[OfficeImageOptimizer.cs:165](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L165)

Original image metadata.

`public OfficeImageInfo Final { get; }` [#](#property-final)

[OfficeImageOptimizer.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L167)

Final encoded image metadata.

`public OfficeImageMetadataReport Metadata { get; }` [#](#property-metadata)

[OfficeImageOptimizer.cs:169](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L169)

Metadata preservation and loss evidence for this result.

`public bool Changed { get; }` [#](#property-changed)

[OfficeImageOptimizer.cs:171](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L171)

Whether the result contains newly encoded bytes.

`public long BytesSaved { get; }` [#](#property-bytessaved)

[OfficeImageOptimizer.cs:173](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L173)

Signed encoded-byte reduction.

`public long OriginalEncodedLength { get; internal set; }` [#](#property-originalencodedlength)

[OfficeImageOptimizer.cs:175](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L175)

Original encoded byte length.

`public long FinalEncodedLength { get; }` [#](#property-finalencodedlength)

[OfficeImageOptimizer.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeImageOptimizer.cs#L177)

Final encoded byte length.

<!-- PowerForge markdown artifact sha256:E2CEDE28C8203431C43AC07876B93F6B00319F0029C384AA749639CDE38E414A -->
