Table of Contents

Method Lock

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

Lock()

Returns a bitmap lock object that provides direct access to the bitmap's pixel data.

IFileTypeBitmapLock<TPixel> Lock()

Returns

IFileTypeBitmapLock<TPixel>

Remarks

This can be more efficient than using the ToBitmap() extension method because it may be able to avoid making a copy of the bitmap source's pixel data.