Results 1 to 18 of 18

Thread: [RESOLVED] image layering with transparent gifs question

Threaded View

  1. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: image layering with transparent gifs question

    PIctureboxes them selves are not transparent. Transparent controls a re a major point of contention in .Net.

    Just use 1 picturebox and use GDI+ code to draw the images in the right order onto the picturebox. Here's a demo (see attachment). The background is passed to the picturebox during the load event so this means you only need to draw the foreground (transparent) gif manually. You can draw as many transparent gifs like this as you want they'll just pile up on top of each other.

    Please look at the two images in the Bin folder before you run this demo, then you'll understand whats going on.
    Attached Files Attached Files
    I don't live here any more.

Posting Permissions

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



Click Here to Expand Forum to Full Width