mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:06:50 +08:00
Throw a more descriptive exception when pixelformat is unsupported.
This commit is contained in:
@@ -65,7 +65,7 @@ namespace openalprnet {
|
||||
channels = 4;
|
||||
break;
|
||||
default:
|
||||
throw gcnew NotImplementedException();
|
||||
throw gcnew NotSupportedException(bitmap->PixelFormat.ToString());
|
||||
}
|
||||
|
||||
BitmapData^ bitmapData = bitmap->LockBits(
|
||||
|
Reference in New Issue
Block a user