Method ToBitmap
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
ToBitmap(IBitmapSource)
public static IBitmap ToBitmap(this IBitmapSource source)
Parameters
source
IBitmapSource
Returns
- IBitmap
ToBitmap(IBitmapSource, RectInt32)
public static IBitmap ToBitmap(this IBitmapSource source, RectInt32 rect)
Parameters
source
IBitmapSource
rect
RectInt32
Returns
- IBitmap
ToBitmap<TPixel>(IBitmapSource<TPixel>)
public static IBitmap<TPixel> ToBitmap<TPixel>(this IBitmapSource<TPixel> source) where TPixel : unmanaged, INaturalPixelInfo
Parameters
source
IBitmapSource<TPixel>
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
ToBitmap<TPixel>(IBitmapSource<TPixel>, RectInt32)
public static IBitmap<TPixel> ToBitmap<TPixel>(this IBitmapSource<TPixel> source, RectInt32 rect) where TPixel : unmanaged, INaturalPixelInfo
Parameters
source
IBitmapSource<TPixel>
rect
RectInt32
Returns
- IBitmap<TPixel>
Type Parameters
TPixel