Method Lock
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
Lock<TPixel>(IBitmapEffectOutput)
Gets the buffer for writing the effect's output to. The origin of the buffer (that is, x=0 y=0) corresponds to the Bounds's Location property.
public static IBitmapLock<TPixel> Lock<TPixel>(this IBitmapEffectOutput output) where TPixel : unmanaged, INaturalPixelInfo
Parameters
output
IBitmapEffectOutput
Returns
- IBitmapLock<TPixel>
Type Parameters
TPixel
The pixel format for the buffer. This must be the same pixel format specified with OutputPixelFormat. If that property was not set by the effect, then ColorBgra32 must be used.
Remarks
You may use the AsRegionPtr<TPixel>(IBitmapLock<TPixel>) to simplify access to the IBitmapLock<TPixel>