Small fixes

This commit is contained in:
Darth Affe 2023-09-05 20:11:39 +02:00
parent 9f9f153da5
commit 1782c83415
2 changed files with 10 additions and 4 deletions

View File

@ -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;

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