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
IImagingFactorysource
IBitmapSourcedstSize
SizeInt32mode
BitmapInterpolationMode
Returns
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
IImagingFactorysource
IBitmapSource<TPixel>dstSize
SizeInt32mode
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
IImagingFactorysource
IBitmapSource<TPixel>dstWidth
intdstHeight
intmode
BitmapInterpolationMode
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel