Table of Contents

Method CreateScaler

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

CreateScaler(IBitmapSource, SizeInt32, BitmapInterpolationMode)

public static IBitmapSource CreateScaler(this IBitmapSource source, SizeInt32 dstSize, BitmapInterpolationMode interpolationMode)

Parameters

source IBitmapSource
dstSize SizeInt32
interpolationMode BitmapInterpolationMode

Returns

IBitmapSource

CreateScaler(IBitmapSource, int, int, BitmapInterpolationMode)

public static IBitmapSource CreateScaler(this IBitmapSource source, int dstWidth, int dstHeight, BitmapInterpolationMode interpolationMode)

Parameters

source IBitmapSource
dstWidth int
dstHeight int
interpolationMode BitmapInterpolationMode

Returns

IBitmapSource

CreateScaler<TPixel>(IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode)

public static IBitmapSource<TPixel> CreateScaler<TPixel>(this IBitmapSource<TPixel> source, SizeInt32 dstSize, BitmapInterpolationMode interpolationMode) where TPixel : unmanaged, INaturalPixelInfo

Parameters

source IBitmapSource<TPixel>
dstSize SizeInt32
interpolationMode BitmapInterpolationMode

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel

CreateScaler<TPixel>(IBitmapSource<TPixel>, int, int, BitmapInterpolationMode)

public static IBitmapSource<TPixel> CreateScaler<TPixel>(this IBitmapSource<TPixel> source, int dstWidth, int dstHeight, BitmapInterpolationMode interpolationMode) where TPixel : unmanaged, INaturalPixelInfo

Parameters

source IBitmapSource<TPixel>
dstWidth int
dstHeight int
interpolationMode BitmapInterpolationMode

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel