Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

OfficeRasterResamplingMode

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Sampling algorithm used when resizing dependency-free raster images.

Inheritance

  • Enum
  • OfficeRasterResamplingMode

Usage

Explore 22 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 2

Values

public const OfficeRasterResamplingMode NearestNeighbor #

Chooses the closest source pixel and preserves hard pixel edges.

Value: 0
public const OfficeRasterResamplingMode Bilinear #

Interpolates four source pixels in premultiplied-alpha space.

Value: 1
public const OfficeRasterResamplingMode Area #

Area-averages downsampled axes and linearly interpolates enlarged axes in premultiplied-alpha space.

Value: 2
public const OfficeRasterResamplingMode Lanczos3 #

Uses a radius-three Lanczos filter with antialiasing and premultiplied-alpha sampling.

Value: 3
public const OfficeRasterResamplingMode Bicubic #

Antialiased cubic interpolation with B=0 and C=0.5.

Value: 4
public const OfficeRasterResamplingMode Box #

A constant half-pixel-support reconstruction kernel.

Value: 5
public const OfficeRasterResamplingMode Triangle #

A one-pixel triangular reconstruction kernel with antialiasing.

Value: 6
public const OfficeRasterResamplingMode Hermite #

A smooth one-pixel Hermite reconstruction kernel.

Value: 7
public const OfficeRasterResamplingMode Lanczos2 #

A radius-two windowed sinc reconstruction kernel.

Value: 8
public const OfficeRasterResamplingMode Lanczos5 #

A radius-five windowed sinc reconstruction kernel.

Value: 9
public const OfficeRasterResamplingMode Lanczos8 #

A radius-eight windowed sinc reconstruction kernel.

Value: 10
public const OfficeRasterResamplingMode MitchellNetravali #

A balanced cubic kernel with B=C=1/3.

Value: 11
public const OfficeRasterResamplingMode CatmullRom #

The Catmull-Rom cubic kernel, mathematically equal to Bicubic (B=0, C=0.5).

Value: 12
public const OfficeRasterResamplingMode Robidoux #

The Robidoux cubic kernel with B=0.3782157551 and C=0.3108921225.

Value: 13
public const OfficeRasterResamplingMode RobidouxSharp #

The sharper Robidoux cubic kernel with B=0.2620145124 and C=0.3689927438.

Value: 14
public const OfficeRasterResamplingMode Spline #

A cubic B-spline reconstruction kernel with B=1 and C=0.

Value: 15
public const OfficeRasterResamplingMode Welch #

A radius-three sinc kernel with a parabolic Welch window.

Value: 16