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
factoryIImagingFactorysourceIBitmapSourcedstSizeSizeInt32modeBitmapInterpolationMode
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
factoryIImagingFactorysourceIBitmapSource<TPixel>dstSizeSizeInt32modeBitmapInterpolationMode
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
factoryIImagingFactorysourceIBitmapSource<TPixel>dstWidthintdstHeightintmodeBitmapInterpolationMode
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel