mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 13:28:35 +00:00
Small fixes
This commit is contained in:
parent
9f9f153da5
commit
1782c83415
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user