Results 1 to 16 of 16

Thread: [RESOLVED] Alternative to using LoadPicture

Threaded View

  1. #1

    Thread Starter
    Lively Member Shaq's Avatar
    Join Date
    May 2009
    Location
    Rhode Island
    Posts
    89

    Resolved [RESOLVED] Alternative to using LoadPicture

    I'm making a game that involves a lot of different characters, and each time I want to change one of their motions I have to use LoadPicture to change the picture of the pictureBox that the Bitblt is reffering to, to paint it. I've noticed that LoadPicture is very inefficient and causes a little lag. Is there any other way I can reference the picture differently, instead of loading it to a picturebox? I can try to clarify this a little more if you don't understand.

    I originally had very large sprite sheets for each character, that contained all the movements, but as I keep adding more characters I get the can't autoredraw image error. So the only thing I can think of to fix it is to split each big sprite sheet up into a sheet for each movement and use LoadPicture when changing motions. This lags a little bit each time it loads a picture though, so I was wondering if there was another way to to either load a picture into a picturebox or to somehow set the picture itself to a variable or something for the Bitblt statement to refer to for the .hdc value.
    Last edited by Shaq; Dec 15th, 2009 at 08:19 PM.

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