Unanswered Image Transparency & Image Files

  • Saturday, April 08, 2006 4:10 AM
     
     

    I am attempting to create a pong remake. I am using graphics i made for the images. The images are surrounded by black. I would like to make it so black in an image shows up transparent. In game speak this is called "Sprite Transparency".

    I would like to make it so the pictureimage control loads the images from disk instead of "binding" it to the executable. That way my players can simply replace the files with their own to create different mods. Click here for an example of how i want it to work.

    Just as a side note, i am converting my code from PureBASIC(see link above for code, and disign) to C#.

All Replies

  • Saturday, April 08, 2006 4:26 AM
    Moderator
     
     

    Hi!

    Bitmap class have MakeTransparent() method.

  • Saturday, April 08, 2006 5:16 AM
    Moderator
     
     

    A little off-topic, but you may find it useful - I tried your game and here is what I think:

    1. I have taskbar on the top of the screen and it's height twice larger than normal, after game started I can't see top of the window and computer player - they are under taskbar. Try center window in working area, like you do with first window.
    2. I tried to hit computer player long enough, but don't even get close - it always catch the ball. This is not good for game play if I can't even hit him.
  • Sunday, April 09, 2006 12:04 AM
     
     
     Sergey Galich wrote:

    Hi!

    Bitmap class have MakeTransparent() method.

    Where do i find the bitmap class?

  • Sunday, April 09, 2006 5:30 AM
    Moderator
     
     

    System.Drawing.Bitmap

    How you load images?