Skip to content

Commit

Permalink
fix pixel format for bitmap average color method
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 25, 2024
1 parent b1846da commit a99727a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Project-Aurora/Project-Aurora/Utils/BitmapUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static Color GetRegionColor(Bitmap map, Rectangle rectangle, long[] color
var srcData = map.LockBits(
rectangle,
(ImageLockMode)5, //ImageLockMode.UserInputBuffer | ImageLockMode.ReadOnly
PixelFormat.Format32bppRgb, buff);
PixelFormat.Format32bppArgb, buff);
var scan0 = srcData.Scan0;

var rectangleHeight = rectangle.Height;
Expand Down

0 comments on commit a99727a

Please sign in to comment.