Skip to content

Commit 1782c83

Browse files
committed
Small fixes
1 parent 9f9f153 commit 1782c83

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

ScreenCapture.NET/Model/Colors/ColorBGRA.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ namespace ScreenCapture.NET;
99
{
1010
#region Properties & Fields
1111

12-
#if NET7_0_OR_GREATER
1312
public static ColorFormat ColorFormat => ColorFormat.BGRA;
14-
#endif
1513

1614
private readonly byte _b;
1715
private readonly byte _g;

ScreenCapture.NET/Model/Image.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,16 @@ public readonly ref struct Image<TColor>
4444
}
4545
}
4646

47-
public ImageRows Rows => new(_pixels, _x, _y, Width, Height, _stride);
48-
public ImageColumns Columns => new(_pixels, _x, _y, Width, Height, _stride);
47+
public ImageRows Rows
48+
{
49+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
50+
get => new(_pixels, _x, _y, Width, Height, _stride);
51+
}
52+
public ImageColumns Columns
53+
{
54+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
55+
get => new(_pixels, _x, _y, Width, Height, _stride);
56+
}
4957

5058
#endregion
5159

0 commit comments

Comments
 (0)