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 fileusing(varimage=newMagickImage("InvalidFile.jpg")){}}// Catch any MagickExceptioncatch(MagickExceptionexception){// Write excepion raised when reading the invalid jpg to the consoleConsole.WriteLine(exception.Message);}try{// Read corrupt jpg fileusing(varimage=newMagickImage("CorruptImage.jpg")){}}// Catch only MagickCorruptImageErrorExceptioncatch(MagickCorruptImageErrorExceptionexception){// Write excepion raised when reading the corrupt jpg to the consoleConsole.WriteLine(exception.Message);}
Obtain warning that occurred during reading
using(varimage=newMagickImage()){// Attach event handler to warning eventimage.Warning+=MagickImage_Warning;// Read file that will raise a warning.image.Read("FileWithWarning.jpg");}