Results 1 to 4 of 4

Thread: transparent image

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Location
    Birmingham, Al
    Posts
    5

    Question transparent image

    Hello,
    I'm still a new programer so try not to confuse me in your ansewer. But i need to know how to make the backround or a image transparent and then be able to move the image around.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    http://vbden.tripod.com/articles/invmask.htm

    It's called BitBlt.
    Don't get me wrong, but if you are a new programmer, graphics isn't the place to start. If you've done a couple of 'hello world' and input/output programs then you are ready, and you know the code in & out. Otherwise I don't suggest this area.

    If according to this you are ready (and you think you are) then go for it!

    My tutorial above shows you the basics of bitblt to 'backbuffers' and colour dipping.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    New Member
    Join Date
    May 2001
    Location
    Colorado
    Posts
    11
    I needed to do the same thing not too long ago... and I felt I WASN'T ready for the whole BitBlt thing . What I ended up doing is to use an ImageBox (instead of a PictureBox) so that I could use a GIF file as the source for the picture. Most image editors will allow you to create transparent backgrounds in a GIF. I've been told that GIFs can be slower in processing than BMPs but the game I wrote was fairly slow paced so it wasn't an issue. I also found that the performance was actually better when I switched from using PictureBoxes to ImageBoxes because ImageBoxes use less resources. Anyway... right or wrong, it works and that's what counts, right?
    "Stuff is stuff."

  4. #4
    New Member
    Join Date
    May 2001
    Location
    Colorado
    Posts
    11
    Oh, and by the way, moving it around, at least for me, was a simple matter of addjusting the Top and Left properties of the ImageBoxes.
    "Stuff is stuff."

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