Unfortunately, this does not work. SetPixel's results are erased by refresh and AutoRedraw. I need some way to edit the image property itself, or some other solution.