Results 1 to 2 of 2

Thread: How do I alpha draw an image over another image?

  1. #1

    How do I alpha draw an image over another image?

    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.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  2. #2

    How do I alpha draw an image over another image?

    The drawalpha just lowers the light of the image, no transparency. Check the other post to see how this is done.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •