Table of Contents

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 IDirect2DFactory
pixelSize SizeInt32
drawingCallback 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 IDirect2DFactory
pixelSize SizeInt32
bufferPixelFormat DevicePixelFormat
drawingCallback Action<IDeviceContext>

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel