Click here to Skip to main content
15,887,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CPaintDC dc(this);
 bmpTurnAlb.LoadBitmap (IDB_BITMAP_TURN_ALB);
piesaDC.CreateCompatibleDC (&dc);
CBitmap *bmpInitial = piesaDC.SelectObject (&bmpTurnAlb);
 imgPiese.Create (40, 40, ILC_COLOR32 | ILC_MASK, 2, 1);
imgPiese.Add (&bmpTurnAlb, RGB(192, 192, 192));
imgPiese.Draw (&piesaDC, 0, CPoint(0, 0), ILD_TRANSPARENT);
dc.SelectObject (bmpInitial);
Posted

1 solution

This is an answer-by-reference, I suppose, but I've found PJ Arends Image Viewer extremely useful when debugging graphics work.

Image Viewer Utility[^]

You can see what's in a bmp, or DC at each step. Very useful when playing with different "rop"s and so on.

For all we know from your code, the initial LoadBitmap doesn't even work, so it's best if you debug line by line using the debugging tool I linked for you.

Good luck,

Iain.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900