Class BitmapScaler
[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
ImagingFactoryThe 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
BitmapSourceThe input bitmap source.
width
intThe destination width.
height
intThe desination height.
mode
BitmapInterpolationModeThe 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