Hi Handoko!
Your right, this is an easier way to do it, and I've changed my code accordingly. But my program still runs into the same problem - it outputs the bmp, and it's the exact same filesize, but unlike the original, this bmp does not open in any editor programs. Is there a maximum filesize a resource can be or something, or any other reason why this bmp might not open after being "SaveToFile"?
Thanks.