Skip to content

Commit 24da193

Browse files
author
Wayfarer
committed
cleanup
1 parent a5bb2ce commit 24da193

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

Imaging/DirectBitmapCore.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,6 @@ internal static Pixel32 GetPixel(Pixel32[] bits, int width, int height, int x, i
5252
return bits[index];
5353
}
5454

55-
/// <summary>
56-
/// Sets the pixels.
57-
/// </summary>
58-
/// <param name="bits">The bits.</param>
59-
/// <param name="width">The width.</param>
60-
/// <param name="height">The height.</param>
61-
/// <param name="pixels">The pixels.</param>
62-
internal static void SetPixels(Pixel32[] bits, int width, int height, IEnumerable<PixelData> pixels)
63-
{
64-
foreach (var pixel in pixels)
65-
{
66-
if ((uint)pixel.X >= width || (uint)pixel.Y >= height) continue;
67-
68-
bits[pixel.Y * width + pixel.X] =
69-
new Pixel32(pixel.R, pixel.G, pixel.B, pixel.A);
70-
}
71-
}
72-
7355
/// <summary>
7456
/// Sets multiple pixels efficiently using contiguous runs per row.
7557
/// Works on a Pixel32 array only; does not touch any bitmap object.

0 commit comments

Comments
 (0)