DrawImage - unwanted resized
Posted
by nXqd
on Stack Overflow
See other posts from Stack Overflow
or by nXqd
Published on 2010-06-10T00:55:01Z
Indexed on
2010/06/10
1:02 UTC
Read the original article
Hit count: 301
gdi+
I've implemented GDI+ Drawing, but I really don't know why it's resize unwanted :)
case WM_PAINT:
{
hdc = BeginPaint(hWnd, &ps);
Graphics g(hdc);
Bitmap* bm;
bm = new Bitmap(L"1.png");
g.DrawImage(bm,0,0);
g.DrawImage(bm,0,100,126,36);
g.DrawImage(bm,0,200,0,0,126,36,UnitPixel);
// TODO: Add any drawing code here...
EndPaint(hWnd, &ps);
break;
}
the second sprite is the one I want , but I must use the third overload of DrawImage to draw one image.
© Stack Overflow or respective owner