You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Imaging/DirectBitmapCore.cs
+73-6Lines changed: 73 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,19 @@
6
6
* PROGRAMER: Peter Geinitz (Wayfarer)
7
7
*/
8
8
9
+
usingSystem;
9
10
usingSystem.Collections.Generic;
10
11
usingSystem.Linq;
12
+
usingSystem.Runtime.InteropServices;
11
13
12
14
namespaceImaging
13
15
{
14
16
/// <summary>
15
-
/// Hopefully this will be the last time we need to duplicate code between DirectBitmap and DirectBitmapImage.
17
+
/// Hopefully this will be the last time we need to duplicate code between DirectBitmap and DirectBitmapImage.
16
18
/// This class contains shared logic for both to set and get pixels from the underlying Pixel32 array, as well as an optimized method to set multiple pixels efficiently using contiguous runs per row.
17
19
/// It works on a Pixel32 array only and does not touch any bitmap object, allowing both DirectBitmap and DirectBitmapImage to use it without duplication.
18
20
/// </summary>
19
-
publicstaticclassDirectBitmapCore
21
+
internalstaticclassDirectBitmapCore
20
22
{
21
23
/// <summary>
22
24
/// Sets the pixel.
@@ -27,7 +29,7 @@ public static class DirectBitmapCore
0 commit comments