Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterResizeOptions

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
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

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Properties

public Nullable<Int32> Width { get; set; } #

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

public Nullable<Int32> Height { get; set; } #

Requested height or height bound.

public OfficeImageFit Fit { get; set; } #

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

public OfficeRasterResamplingMode ResamplingMode { get; set; } #

Sampling kernel. The editing default is bicubic.

public OfficeRasterResamplingColorSpace ColorSpace { get; set; } #

Color space in which samples are filtered.