PDA

View Full Version : How do I alpha draw an image over another image?



czar
14-01-2004, 08:39 AM
I wish to use an image as my background image, then I would like to draw images over the top using drawalpha. However, instead of combining with the underlying image it is combining with the black of the screen.

GLXImageList1.Items[0].Draw(0,0,0); // 800 x 600 image

GLXImageList1.Items.Items[3].DrawAlpha (10, 32, 0, 0.5);

I thought I would use drawadd instead but then the images don't quite look right, the colours seem to screw up slightly.

Is there a way to get around the problem. I can deal with drawalpha not blending with other images, but only if it is possible to setup a background image with which it does blend.

Andreaz
15-01-2004, 07:20 AM
The drawalpha just lowers the light of the image, no transparency. Check the other post to see how this is done.