Skip to content

Equivalent to Bitmap.LockBits() #606

@marcpabst

Description

@marcpabst

I'm trying to replace System.Drawing in a project where I use LockBits():

var data = bitmap.LockBits(
     new Rectangle(0, 0, clipWidth, clipHeight), 
     ImageLockMode.ReadWrite, 
     bitmap.PixelFormat);

Then I write to that bitmap using a native library. Is there any way to achive this with ImageSharp?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions