Matt Nash
01-09-2001, 09:53 AM
Does anyone know a way of using a transparent background on an image using BitBlt? I'm trying to copy just the coloured section of a picture, not the black background.
Any suggestions would be welcomed.
Not completely sure, but if the background has one transparency code, can't you use the API call TransparentBlt?
It copies the source to the destination treating a colour that you specify as transparent in the source image. The function isn't listed in the VB api viewer, but it's in the windows sdk in msdn.
Hope this helps.
JAJ.