Method CreateBitmapSourceFromDrawing
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Framework.dll
CreateBitmapSourceFromDrawing<TPixel>(IDirect2DFactory, SizeInt32, Action<IDeviceContext>)
public static IBitmapSource<TPixel> CreateBitmapSourceFromDrawing<TPixel>(this IDirect2DFactory factory, SizeInt32 pixelSize, Action<IDeviceContext> drawingCallback) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factory
IDirect2DFactorypixelSize
SizeInt32drawingCallback
Action<IDeviceContext>
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel
CreateBitmapSourceFromDrawing<TPixel>(IDirect2DFactory, SizeInt32, DevicePixelFormat, Action<IDeviceContext>)
public static IBitmapSource<TPixel> CreateBitmapSourceFromDrawing<TPixel>(this IDirect2DFactory factory, SizeInt32 pixelSize, DevicePixelFormat bufferPixelFormat, Action<IDeviceContext> drawingCallback) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factory
IDirect2DFactorypixelSize
SizeInt32bufferPixelFormat
DevicePixelFormatdrawingCallback
Action<IDeviceContext>
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel