Page 1 of 1

strange image loading behavior

PostPosted: Aug 27, 2002 @ 9:42pm
by thevicar

PostPosted: Aug 28, 2002 @ 1:43am
by DillRye

PostPosted: Aug 28, 2002 @ 6:38pm
by efortier

PostPosted: Aug 28, 2002 @ 10:16pm
by thevicar
hi,

it turns out there is something wrong with some of my images - what, I'm not sure. they're 24-bit .bmp's. some load and work perfectly as they should, with the code I was using all along (which is like yours). some won't load but (!) if I repeat the CreateSurface call right away, then they sometimes load. so, I'm going to try resaving all the images using something other than Photoshop.

PostPosted: Aug 30, 2002 @ 11:28pm
by thevicar
I've experimented a little bit and I've found there is a correlation between an image's dimensions and whether it will load properly. Unfortunately I haven't been able to discern a pattern (ie height or width needs to be even, etc.), but I find certain sizes work and certain others don't, no matter what drawing program I save them in.

PostPosted: Aug 31, 2002 @ 12:36am
by Hosed

PostPosted: Aug 31, 2002 @ 8:51am
by Johan

PostPosted: Sep 5, 2002 @ 8:50am
by thevicar