mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2026-11-09 18:36:29 +00:00
Small fixes
This commit is contained in:
1 parent
9f9f153da5
commit
1782c83415
2 files changed
+10
-4
No files matched your search
@@ -9,9 +9,7 @@ public readonly struct ColorBGRA : IColor
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
#if NET7_0_OR_GREATER
|
||||
public static ColorFormat ColorFormat => ColorFormat.BGRA;
|
||||
#endif
|
||||
|
||||
private readonly byte _b;
|
||||
private readonly byte _g;
|
||||
|
||||
@@ -44,8 +44,16 @@ public readonly ref struct Image<TColor>
|
||||
}
|
||||
}
|
||||
|
||||
public ImageRows Rows => new(_pixels, _x, _y, Width, Height, _stride);
|
||||
public ImageColumns Columns => new(_pixels, _x, _y, Width, Height, _stride);
|
||||
public ImageRows Rows
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => new(_pixels, _x, _y, Width, Height, _stride);
|
||||
}
|
||||
public ImageColumns Columns
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => new(_pixels, _x, _y, Width, Height, _stride);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user