Table of Contents

Method CreateBitmapScaler

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CreateBitmapScaler(IImagingFactory, IBitmapSource, SizeInt32, BitmapInterpolationMode)

public static IBitmapSource CreateBitmapScaler(this IImagingFactory factory, IBitmapSource source, SizeInt32 dstSize, BitmapInterpolationMode mode)

Parameters

factory IImagingFactory
source IBitmapSource
dstSize SizeInt32
mode BitmapInterpolationMode

Returns

IBitmapSource

CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode)

public static IBitmapSource<TPixel> CreateBitmapScaler<TPixel>(this IImagingFactory factory, IBitmapSource<TPixel> source, SizeInt32 dstSize, BitmapInterpolationMode mode) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
source IBitmapSource<TPixel>
dstSize SizeInt32
mode BitmapInterpolationMode

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel

CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, int, BitmapInterpolationMode)

public static IBitmapSource<TPixel> CreateBitmapScaler<TPixel>(this IImagingFactory factory, IBitmapSource<TPixel> source, int dstWidth, int dstHeight, BitmapInterpolationMode mode) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
source IBitmapSource<TPixel>
dstWidth int
dstHeight int
mode BitmapInterpolationMode

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel