# OfficeWebpEncodeOptions

Controls managed WebP encoding. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Core API Reference.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`1d5ef38d1e0b` with working tree changes

**Source**

[OfficeWebpEncodeOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L15)

**Modifiers**

sealed

Controls managed WebP encoding.

## Inheritance

- object
- OfficeWebpEncodeOptions

## Usage

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

- Property [OfficeRasterEncodingOptions.Webp](/api/core/officeimo-drawing-officerasterencodingoptions/#property-webp)

### Accepted by parameters 2

- Method [OfficeWebpCodec.Encode](/api/core/officeimo-drawing-officewebpcodec/#method-encode-officeimo-drawing-officerasterimage-officeimo-drawing-officewebpencodeoptions) parameter `options`
- Method [OfficeWebpCodec.EncodeTo](/api/core/officeimo-drawing-officewebpcodec/#method-encodeto-officeimo-drawing-officerasterimage-io-stream-officeimo-drawing-officewebpencodeoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public OfficeWebpEncodeOptions()` [#](#constructor-ctor)

[OfficeWebpEncodeOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L15)

## 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 OfficeImageEncodingEffort Effort { get; set; }` [#](#property-effort)

[OfficeWebpEncodeOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L15)

Lossless encoding effort. Balanced is the default; Smallest opts into candidate searches.

`public OfficeWebpEncodingMode Mode { get; set; }` [#](#property-mode)

[OfficeWebpEncodeOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L18)

The compression mode. Lossless preserves the existing default encoding contract.

`public int Quality { get; set; }` [#](#property-quality)

[OfficeWebpEncodeOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L22)

VP8 color quality from 1 through 100. This setting applies only to lossy encoding.

`public double DpiX { get; set; }` [#](#property-dpix)

[OfficeWebpEncodeOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L25)

Horizontal resolution written to Exif when physical resolution is enabled.

`public double DpiY { get; set; }` [#](#property-dpiy)

[OfficeWebpEncodeOptions.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L28)

Vertical resolution written to Exif when physical resolution is enabled.

`public bool WritePhysicalResolution { get; set; }` [#](#property-writephysicalresolution)

[OfficeWebpEncodeOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/1d5ef38d1e0bc45ee35fa9829701a5d52fd16d26/OfficeIMO.Core/Raster/OfficeWebpEncodeOptions.cs#L31)

Writes Exif physical resolution metadata.

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