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
CreateBitmapScaler(IImagingFactory, IBitmapSource, SizeInt32, BitmapInterpolationMode2)
public static IBitmapSource CreateBitmapScaler(this IImagingFactory factory, IBitmapSource source, SizeInt32 dstSize, BitmapInterpolationMode2 mode)
Parameters
factory IImagingFactory
source IBitmapSource
dstSize SizeInt32
mode BitmapInterpolationMode2
Returns
- IBitmapSource
CreateBitmapScaler(IImagingFactory, IBitmapSource, int, int, BitmapInterpolationMode2)
public static IBitmapSource CreateBitmapScaler(this IImagingFactory factory, IBitmapSource source, int dstWidth, int dstHeight, BitmapInterpolationMode2 mode)
Parameters
factory IImagingFactory
source IBitmapSource
dstWidth int
dstHeight int
mode BitmapInterpolationMode2
Returns
- IBitmapSource
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode2)
public static IBitmapSource<TPixel> CreateBitmapScaler<TPixel>(this IImagingFactory factory, IBitmapSource<TPixel> source, SizeInt32 dstSize, BitmapInterpolationMode2 mode) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factory IImagingFactory
source IBitmapSource<TPixel>
dstSize SizeInt32
mode BitmapInterpolationMode2
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, int, BitmapInterpolationMode2)
public static IBitmapSource<TPixel> CreateBitmapScaler<TPixel>(this IImagingFactory factory, IBitmapSource<TPixel> source, int dstWidth, int dstHeight, BitmapInterpolationMode2 mode) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factory IImagingFactory
source IBitmapSource<TPixel>
dstWidth int
dstHeight int
mode BitmapInterpolationMode2
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel