# OfficeRasterResizePlan

Immutable pixel geometry and peak managed-storage plan for one raster resize.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeRasterResizePlan.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L19)

**Modifiers**

sealed

Immutable pixel geometry and peak managed-storage plan for one raster resize.

## Inheritance

- object
- OfficeRasterResizePlan

## Remarks

Contain dimensions round to the nearest pixel with midpoint ties away from zero and remain within supplied bounds. Cover dimensions round upward; its centered crop puts an odd extra pixel on the right or bottom. The plan includes the independent-copy path, sampling scratch and tables, and any resized intermediate and crop output.

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

- Method [OfficeRasterResampler.PlanResize](/api/core/officeimo-drawing-officerasterresampler/#method-planresize-int32-int32-officeimo-drawing-officerasterresizeoptions-threading-cancellationtoken)

### Accepted by parameters 1

- Method [OfficeRasterResampler.Resize](/api/core/officeimo-drawing-officerasterresampler/#method-resize-officeimo-drawing-officerasterimage-officeimo-drawing-officerasterresizeplan-threading-cancellationtoken) parameter `plan`

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 int SourceWidth { get; }` [#](#property-sourcewidth)

[OfficeRasterResizePlan.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L19)

Required source width.

`public int SourceHeight { get; }` [#](#property-sourceheight)

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

Required source height.

`public int ResizeWidth { get; }` [#](#property-resizewidth)

[OfficeRasterResizePlan.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L23)

Width of the sampled intermediate before an optional crop.

`public int ResizeHeight { get; }` [#](#property-resizeheight)

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

Height of the sampled intermediate before an optional crop.

`public int Width { get; }` [#](#property-width)

[OfficeRasterResizePlan.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L27)

Final output width.

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

[OfficeRasterResizePlan.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L29)

Final output height.

`public int CropX { get; }` [#](#property-cropx)

[OfficeRasterResizePlan.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L31)

Left pixel of the final crop in the sampled intermediate.

`public int CropY { get; }` [#](#property-cropy)

[OfficeRasterResizePlan.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L33)

Top pixel of the final crop in the sampled intermediate.

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

[OfficeRasterResizePlan.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L35)

Captured fit behavior.

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

[OfficeRasterResizePlan.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L37)

Captured sampling kernel.

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

[OfficeRasterResizePlan.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L39)

Captured filtering color space.

`public long WorkingSetBytes { get; }` [#](#property-workingsetbytes)

[OfficeRasterResizePlan.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L41)

Peak source, output, temporary, table and fixed-overhead storage in bytes.

`public long AdditionalWorkingBytes { get; }` [#](#property-additionalworkingbytes)

[OfficeRasterResizePlan.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeRasterResizePlan.cs#L43)

Peak storage beyond source and final-output RGBA buffers; frame operations retain this allowance alongside all frames.

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