Method GetBitmap
- Namespace
 - PaintDotNet.Effects
 
- Assembly
 - PaintDotNet.Effects.Core.dll
 
GetBitmap<TPixel>(IEffectLayerInfo)
Gets a bitmap that renders the layer's contents in the requested pixel format.
public static IEffectInputBitmap<TPixel> GetBitmap<TPixel>(this IEffectLayerInfo layer) where TPixel : unmanaged, INaturalPixelInfo
Parameters
layerIEffectLayerInfoThe layer.
Returns
- IEffectInputBitmap<TPixel>
 The bitmap.
Type Parameters
TPixelThe requested pixel struct for the bitmap. The native pixel struct used by Paint.NET is currently ColorBgra32, which corresponds to the Bgra32 pixel format. Specifying a different pixel struct/format is valid, but will incur conversion overhead.