Throw a more descriptive exception when pixelformat is unsupported.

This commit is contained in:
Peter Rekdal Sunde
2015-07-22 09:44:41 +02:00
parent dda263edb2
commit f7f1337757

View File

@@ -65,7 +65,7 @@ namespace openalprnet {
channels = 4; channels = 4;
break; break;
default: default:
throw gcnew NotImplementedException(); throw gcnew NotSupportedException(bitmap->PixelFormat.ToString());
} }
BitmapData^ bitmapData = bitmap->LockBits( BitmapData^ bitmapData = bitmap->LockBits(