tags:

views:

12

answers:

0

I've implemented GDI+ Drawing, but I really don't know why it's resize unwanted :) alt text

    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.