Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.
Anybody looking for a graduate programmer (Midlands, England)?
  • Leaders
Posted
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).
[sIGPIC]e[/sIGPIC]
Posted
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.

Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...