Method GetSourceBitmapBgra32
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
GetSourceBitmapBgra32(IEffectEnvironment)
(Recommended) Gets a bitmap that renders the source layer's contents in the native Bgra32 pixel format.
public static IEffectInputBitmap<ColorBgra32> GetSourceBitmapBgra32(this IEffectEnvironment environment)
Parameters
environment
IEffectEnvironmentThe environment.
Returns
- IEffectInputBitmap<ColorBgra32>
The bitmap.
Remarks
This method is equivalent to calling:
this.Environment.Document.Layers[this.Environment.SourceLayerIndex].GetSourceBitmapBgra32()