mcerk Posted December 20, 2005 Posted December 20, 2005 Hi. This is strange. I can not open this image in visual studio. I'd like to manipulate with this image in run time, therefore I need to open image and load it into variable type Image. 'here I load an image from file dim img as Image = Image.FromFile(myFile) 'image is not loaded completely. Size of image is correct, but content is white. There is no image displayed!!!???!??!??! Can anyone figure out, why? If I convert Image using some other graphics program, and then try to open it in VS it works. But this will be automatic task, so I can't change source image format. PS: I've attached source image, so you guys can play with. PSS: image format is GIF, 585x630x32 tx matej Quote
Cags Posted December 20, 2005 Posted December 20, 2005 Hmm... that is very odd indeed, but it's not only VB that can't load it properly, if I save that image to my desktop then double click on it, a blank square is displayed. So my Windows XP SP2 can't see it properly either. Quote Anybody looking for a graduate programmer (Midlands, England)?
Leaders snarfblam Posted December 20, 2005 Leaders Posted December 20, 2005 585x630x32... you don't mean 32 bpp, do you, cause last I knew gifs couldn't do that. My best guess is that what ever software created that gif saved it in a not entirely standard format that firefox and IE happen to tolerate. I can't open the image with Windows Picture and Fax Viewer, VS, or Photoshop (it displays as a blank black or white square). Quote [sIGPIC]e[/sIGPIC]
mcerk Posted December 20, 2005 Author Posted December 20, 2005 ACDSee 8.0 opens it correctly ... Quote
Cags Posted December 20, 2005 Posted December 20, 2005 ACDSee 8.0 opens it correctly ... Just because a single program happens to open the file it doesn't make it the correct/standard format and as such you will struggle to get other programs to open the file. Quote Anybody looking for a graduate programmer (Midlands, England)?
mcerk Posted December 20, 2005 Author Posted December 20, 2005 I know. So. Does anyone know some other method, to open this file? Becouse, as I said, I can not change the file format. :( Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.