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

there is always more than 1 error …