# OfficeRasterEncodingResult

Encoded raster bytes together with completed metadata projection evidence.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeRasterEncodingResult.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L30)

**Modifiers**

sealed

Encoded raster bytes together with completed metadata projection evidence.

## Inheritance

- object
- OfficeRasterEncodingResult

## Remarks

Pixel encoding failures and cancellation throw instead of producing a partial result.

## Usage

Explore 2 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 2

- Method [OfficeImageMetadata.ApplyForEncoding](/api/core/officeimo-drawing-officeimagemetadata/#method-applyforencoding-byte-officeimo-drawing-officerasterencodingoptions-int64-threading-cancellationtoken)
- Method [OfficeRasterImageEncoder.EncodeWithMetadata](/api/core/officeimo-drawing-officerasterimageencoder/#method-encodewithmetadata-officeimo-drawing-officerasterimage-officeimo-drawing-officeimageexportformat-officeimo-drawing-officeimagemetadata-officeimo-drawing-officerasterencodingoptions-int64-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public byte[] RequireMetadataPreservation()` [#](#method-requiremetadatapreservation)

[OfficeRasterEncodingResult.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L30)

Returns the owned output array when no supplied profile family was omitted, otherwise throws.

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

## Properties

`public byte[] EncodedBytes { get; }` [#](#property-encodedbytes)

[OfficeRasterEncodingResult.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L12)

The independently owned output array. Repeated access returns the same mutable array.

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

[OfficeRasterEncodingResult.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L17)

The independently mutable requested metadata projection applied by this operation.

`public OfficeImageMetadataProfileKinds OmittedProfiles { get; }` [#](#property-omittedprofiles)

[OfficeRasterEncodingResult.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L21)

Supplied profile families omitted because the emitted container has no supported carrier.

`public bool HasMetadataLoss { get; }` [#](#property-hasmetadataloss)

[OfficeRasterEncodingResult.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterEncodingResult.cs#L25)

Whether any supplied profile family was omitted.

<!-- PowerForge markdown artifact sha256:31EECF37A5FDDB1FA08073F5137AA03CC0C33CFABB0B41900186A47B132A3519 -->
