Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRasterResizeOptions

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
1f76172c94d1 with working tree changes
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

Constructors

public OfficeRasterResizeOptions() #

Properties

public int? Width { get; set; } #

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

public int? 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.