My English is terrible so plz dont panic (if u found grammatical errors).
I've just made a program that uses GDI+ functions to simply load an image from disk and display it onto the window.
the code is very simple:
Graphics graphics(hdc); Image image(L"C:\\1.bmp"); graphics.DrawImage(&image,0,0);but the problem is that the drawimage function, acts stupidly!
That when i just load a file (bmp or png) created using Paint (Windows Application), it shows it correctly, but when i create the same image with Photoshop n save it as a bmp, the program resizes my image by 4/3 ratio (stretches it)!
i dunno what's the matter, i'd be grateful if anyone tell how to fix this problem.
i guess its the matter of color channels but dunno howto tell the Image Object treating normally with different Color Channel formats!


Sign In
Create Account

Back to top









