Image overlay
:WAVE:
I have monochromatic images available in either BMP or metafile formats.
I would like to do the following but havent got a clue about how to go around solving the problem
1) I would like to overlay one image on top of another image but see through the background to the image below
2) I would like the ability to change the colour of any paticular image file to any colour the user chooses.
Can I do this and if so how would I go about doing it?
Thanks in advance
Rgds
Eddie
# 1 Re: Image overlay
You can use BitBlt to overlay one bitmap onto another; see http://www.vb-helper.com/howto_drag_picture_with_bitblt_repair.html for details. You may simply "play" a metafile onto a device context containing the background image; see http://vb.mvps.org/articles/ap200001.asp for more information.
You may find this site helpful in answering your second question: http://vb.mvps.org/hardcore/html/palettetricks.htm . Otherwise, I think you'll need a third-party graphics library.