We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29d5104 commit 01eeadeCopy full SHA for 01eeade
src/OpenCvSharp.Extensions/BitmapConverter_IplImage.cs
@@ -46,11 +46,11 @@ public static IplImage ToIplImage(this Bitmap src)
46
switch (src.PixelFormat)
47
{
48
case PixelFormat.Format24bppRgb:
49
- case PixelFormat.Format32bppRgb:
50
channels = 3; break;
+ case PixelFormat.Format32bppRgb:
51
case PixelFormat.Format32bppArgb:
52
case PixelFormat.Format32bppPArgb:
53
- channels = 3; break;
+ channels = 4; break;
54
case PixelFormat.Format8bppIndexed:
55
case PixelFormat.Format1bppIndexed:
56
channels = 1; break;
0 commit comments