# OfficeRasterResizeOptions

Requested pixel bounds and sampling for a managed raster resize.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeRasterResizeOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L11)

**Modifiers**

sealed

Requested pixel bounds and sampling for a managed raster resize.

## Inheritance

- object
- OfficeRasterResizeOptions

## Remarks

Contain returns fitted pixels without padding. Cover requires both axes and returns a centered crop. Settings are captured by the resize plan before allocation; later changes do not affect that plan.

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

### Accepted by parameters 3

- Method [OfficeRasterFrames.Resize](/api/core/officeimo-drawing-officerasterframes/#method-resize-officeimo-drawing-officerasterresizeoptions-threading-cancellationtoken-int64) parameter `options`
- Method [OfficeRasterResampler.PlanResize](/api/core/officeimo-drawing-officerasterresampler/#method-planresize-int32-int32-officeimo-drawing-officerasterresizeoptions-threading-cancellationtoken) parameter `options`
- Method [OfficeRasterResampler.Resize](/api/core/officeimo-drawing-officerasterresampler/#method-resize-officeimo-drawing-officerasterimage-officeimo-drawing-officerasterresizeoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OfficeRasterResizeOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L11)

## 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 int? Width { get; set; }` [#](#property-width)

[OfficeRasterResizeOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L7)

Requested width or width bound. At least one axis must be supplied.

`public int? Height { get; set; }` [#](#property-height)

[OfficeRasterResizeOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L9)

Requested height or height bound.

`public OfficeImageFit Fit { get; set; }` [#](#property-fit)

[OfficeRasterResizeOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L11)

Stretch keeps an omitted source axis; Contain infers it; Cover requires both axes.

`public OfficeRasterResamplingMode ResamplingMode { get; set; }` [#](#property-resamplingmode)

[OfficeRasterResizeOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L13)

Sampling kernel. The editing default is bicubic.

`public OfficeRasterResamplingColorSpace ColorSpace { get; set; }` [#](#property-colorspace)

[OfficeRasterResizeOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizeOptions.cs#L15)

Color space in which samples are filtered.

<!-- PowerForge markdown artifact sha256:1FE0E3AE7605287D291BE9F9F33DEBD0A2606094584EA16877C56B24BB2AF1A0 -->
