diff --git a/src/ImageSharp/PixelFormats/Bgr24.cs b/src/ImageSharp/PixelFormats/Bgr24.cs index 955b5c161..b099bab1c 100644 --- a/src/ImageSharp/PixelFormats/Bgr24.cs +++ b/src/ImageSharp/PixelFormats/Bgr24.cs @@ -14,22 +14,25 @@ namespace SixLabors.ImageSharp.PixelFormats /// Ranges from [0, 0, 0, 1] to [1, 1, 1, 1] in vector form. /// /// - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Explicit)] public struct Bgr24 : IPixel { /// /// The blue component. /// + [FieldOffset(0)] public byte B; /// /// The green component. /// + [FieldOffset(1)] public byte G; /// /// The red component. /// + [FieldOffset(2)] public byte R; ///