Results 1 to 6 of 6

Thread: Saving Graphics

  1. #1

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    OK, I know how to save bitmaps, but I have a small program which will draw the background for my game. The BG always comes out at around 2.25 MB. I wish to lower the size. The background is mostly black, so when I zip it, it compresses by about 98%. I would like to save the picture in a gif or jpeg format.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  2. #2
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    Question

    Wyh do you want to save the background, when you have it already drawn?
    mojo

  3. #3

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    it is a problem caused with the refresh. I find it only works if it is in a file. And besides, it runs faster.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  4. #4

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    Just rembmbered one more reason, so the user can change the picture easily.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  5. #5
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    Lightbulb

    But that will also be slow.
    You may use the BitBlt API call to transport an image of an user defined size from one PictureBox to any location into another PictureBox.
    mojo

  6. #6

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    The program that makes the BG is differnt then the one that uses it. And please stop giving me all these reasons not to do, just tell me how to do it.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

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