def __init__(self, oldbmp, bmp): self.bmp = bmp self.RedoBitmap = Bitmap.Copy(bmp) # image after change self.UndoBitmap = oldbmp # image before change
def UpdateOld(self): self.olddata = Bitmap.Copy(self.data)