Using Bitmap.LockBits and Marshal.Copy in IronPython not changing image as expected
- by Leonard H Martin
Hi all,
I have written the following IronPython code:
import clr
clr.AddReference("System.Drawing")
from System import *
from System.Drawing import *
from System.Drawing.Imaging import *
originalImage = Bitmap("Test.bmp")
def RedTint(bitmap):
bmData = bitmap.LockBits(Rectangle(0, 0, bitmap.Width, bitmap.Height),
…