Drawing a mat picture not correct in hdc of C++

Hi,
Thank you for your reply. I have change as you recommend and it is still not correct
image