Locks a rectangular area of the bitmap and returns BitmapData object which provides direct access to pixels (without copying).
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Function LockBits ( _ left As Single, _ top As Single, _ width As Single, _ height As Single _ ) As BitmapData
public BitmapData LockBits( float left, float top, float width, float height )
Type: System.Single
X-coordinate of the top left corner of the rectangular area to lock.Type: System.Single
Y-coordinate of the top left corner of the rectangular area to lock.Type: System.Single
Width of the rectangular area to lock.Type: System.Single
Height of the rectangular area to lock.Each call of this method should be followed with subsequent UnlockBits(BitmapData) method call. You cannot lock bits one more time until you unlock them with UnlockBits(BitmapData). You can check if bits are locked with BitsLocked property.
Rectangle parameters are measured in units specified with Unit property of the source bitmap.
If you want to load all pixels of the bitmap, you can use overloaded version without arguments.