mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 21:38:42 +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
|
#region Properties & Fields
|
||||||
|
|
||||||
#if NET7_0_OR_GREATER
|
|
||||||
public static ColorFormat ColorFormat => ColorFormat.BGRA;
|
public static ColorFormat ColorFormat => ColorFormat.BGRA;
|
||||||
#endif
|
|
||||||
|
|
||||||
private readonly byte _b;
|
private readonly byte _b;
|
||||||
private readonly byte _g;
|
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 ImageRows Rows
|
||||||
public ImageColumns Columns => new(_pixels, _x, _y, Width, Height, _stride);
|
{
|
||||||
|
[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
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user