Small fixes

This commit is contained in:
DarthAffe committed 2023-09-05 20:11:39 +02:00
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;
+10 -2
View File
@@ -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