-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Milestone
Description
System.Drawing.Bitmap class has a SetPixel() method but it is slow for setting many pixels because each call locks in bitmap in the kernel. That is why Bitmap also has a LockBits() method which locks the bitmap and returns a System.Drawing.Imaging.BitmapData for direct manipulation.
The problem is this BitmapData class has no easy method for SetPixel() but you need to calculate with IntPtr and stride values.
I wish extension methods in System.Drawing.Imaging for BitmapData which allow fast SetPixel() for many pixels
Metadata
Metadata
Assignees
Labels
No labels