Ik wil de width en height van een afbeelding op de server lezen!
Dit ging wel goed maar ineens kreeg ik een Exception zonder iets gewijzigd te hebben?!?!
Object reference not set...... bladibla
:: System.Drawing.SafeNativeMethods ::
Mijn code is als volgt:
------------
int height;
int width;
Bitmat myBitmap = new Bitmap("C:\\afbeelding.JPG");
height = myBitmap.Height;
width = myBitmap.width;
myBitmap.Dispose();
------------
Iemand een oplossing?
Dit ging wel goed maar ineens kreeg ik een Exception zonder iets gewijzigd te hebben?!?!
Object reference not set...... bladibla
:: System.Drawing.SafeNativeMethods ::
Mijn code is als volgt:
------------
int height;
int width;
Bitmat myBitmap = new Bitmap("C:\\afbeelding.JPG");
height = myBitmap.Height;
width = myBitmap.width;
myBitmap.Dispose();
------------
Iemand een oplossing?