();
return new Bitmap(factory, width, height, pixelFormat, new DataRectangle((IntPtr)Interop.Fixed(pixelDatas), stride));
}
///
/// Provides access to a rectangular area of the bitmap.
///
/// The access mode you wish to obtain for the lock. This is a bitwise combination of for read, write, or read and write access.
| Value | Meaning |
| The read access lock. |
| The write access lock. |
?
/// A reference that receives the locked memory location.
///
/// Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the is locked for writing. Doing so will return an error, since locks are exclusive.
///
/// ee690187
/// HRESULT IWICBitmap::Lock([In, Optional] const WICRect* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock)
/// IWICBitmap::Lock
public SharpDX.WIC.BitmapLock Lock(SharpDX.WIC.BitmapLockFlags flags)
{
return Lock(IntPtr.Zero, flags);
}
///
/// Provides access to a rectangular area of the bitmap.
///
/// The rectangle to be accessed.
/// The access mode you wish to obtain for the lock. This is a bitwise combination of for read, write, or read and write access.
| Value | Meaning |
| The read access lock. |
| The write access lock. |
?
/// A reference that receives the locked memory location.
///
/// Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the is locked for writing. Doing so will return an error, since locks are exclusive.
///
/// ee690187
/// HRESULT IWICBitmap::Lock([In, Optional] const WICRect* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock)
/// IWICBitmap::Lock
public unsafe SharpDX.WIC.BitmapLock Lock(RawBox rcLockRef, SharpDX.WIC.BitmapLockFlags flags)
{
return this.Lock(new IntPtr(&rcLockRef), flags);
}
}
}