Table of Contents

Class BitmapScaler

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("00000302-a8f2-4877-ba0a-fd2b6645fb94")]
public class BitmapScaler : BitmapSource
Inheritance
BitmapScaler
Inherited Members

Constructors

BitmapScaler(ImagingFactory)

Initializes a new instance of the BitmapScaler class.

public BitmapScaler(ImagingFactory factory)

Parameters

factory ImagingFactory

The factory.

BitmapScaler(nint)

public BitmapScaler(nint nativePtr)

Parameters

nativePtr nint

Methods

Initialize(BitmapSource, int, int, BitmapInterpolationMode)

Initializes the bitmap scaler with the provided parameters.

public void Initialize(BitmapSource sourceRef, int width, int height, BitmapInterpolationMode mode)

Parameters

sourceRef BitmapSource

The input bitmap source.

width int

The destination width.

height int

The desination height.

mode BitmapInterpolationMode

The BitmapInterpolationMode to use when scaling.

Remarks

BitmapScaler can't be initialized multiple times. For example, when scaling every frame in a multi-frame image, a new BitmapScaler must be created and initialized for each frame.

Operators

explicit operator BitmapScaler(nint)

public static explicit operator BitmapScaler(nint nativePtr)

Parameters

nativePtr nint

Returns

BitmapScaler