E
escristian
Hello.
I'm trying to create an Image so I use something like this:
Image newImage = Image.FromFile(filename);
Now when it's a bmp file and certain .gif files it gives me an
exception that says: "Invalid parameter used". The gif an bmp files are
valid image files, I can open them in any graphics software and windows
can do the preview.
Can anyone tell me why this is hapenning and what I can do about this.
The problem is that when I get the exception my forms hangs and I can't
give back control to the user. Also just as a test I used the overload
for .FromFile method and it gives me the same result
Thank you.
I'm trying to create an Image so I use something like this:
Image newImage = Image.FromFile(filename);
Now when it's a bmp file and certain .gif files it gives me an
exception that says: "Invalid parameter used". The gif an bmp files are
valid image files, I can open them in any graphics software and windows
can do the preview.
Can anyone tell me why this is hapenning and what I can do about this.
The problem is that when I get the exception my forms hangs and I can't
give back control to the user. Also just as a test I used the overload
for .FromFile method and it gives me the same result
Thank you.