Link to home
Start Free TrialLog in
Avatar of malik_mumtaz
malik_mumtaz

asked on

copy bitmap over second bitmap

I have a problem.

I want to copy a bitmap over second bitmap at the specified location and then save that bitmap as third bitmap.

if anybody knows the solution then please give sample code.

Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Create two memory dc. Select two bitmaps in two memory DCs.
BilBlt one dc to another.

Using GetDIBits get tha bitmap data, and save the bitmap into a file.

Good Luck
Avatar of fl0yd
fl0yd

Hmmm, I'd have to guess that you want to copy one bitmap _transparently_ over another bitmap. In that case you will have to apply masking in between the blitting steps. Let me know if that is what you are after and I'll hunt down a tutorial for you.

.f
Avatar of malik_mumtaz

ASKER

yes f10yd i am looking what you have guessed. i will wait for your response.
ASKER CERTIFIED SOLUTION
Avatar of fl0yd
fl0yd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial