Skip to content

Commit ebf01aa

Browse files
committed
Merge pull request shimat#83 from dkpark89/patch-1
Update BitmapConverter_IplImage.cs
2 parents 29d5104 + 01eeade commit ebf01aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenCvSharp.Extensions/BitmapConverter_IplImage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public static IplImage ToIplImage(this Bitmap src)
4646
switch (src.PixelFormat)
4747
{
4848
case PixelFormat.Format24bppRgb:
49-
case PixelFormat.Format32bppRgb:
5049
channels = 3; break;
50+
case PixelFormat.Format32bppRgb:
5151
case PixelFormat.Format32bppArgb:
5252
case PixelFormat.Format32bppPArgb:
53-
channels = 3; break;
53+
channels = 4; break;
5454
case PixelFormat.Format8bppIndexed:
5555
case PixelFormat.Format1bppIndexed:
5656
channels = 1; break;

0 commit comments

Comments
 (0)