You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try{// Read invalid jpg fileusingvarimage=newMagickImage(SampleFiles.InvalidFileJpg);}// Catch any MagickExceptioncatch(MagickExceptionexception){// Write excepion raised when reading the invalid jpg to the consoleConsole.WriteLine(exception.Message);}try{// Read corrupt jpg fileusingvarimage=newMagickImage(SampleFiles.CorruptImageJpg);}// Catch only MagickCorruptImageErrorExceptioncatch(MagickCorruptImageErrorExceptionexception){// Write excepion raised when reading the corrupt jpg to the consoleConsole.WriteLine(exception.Message);}
Obtain warning that occurred during reading
usingvarimage=newMagickImage();// Attach event handler to warning eventimage.Warning+=MagickImage_Warning;// Read file that will raise a warning.image.Read(SampleFiles.FileWithWarningJpg);