|
|
|
@ -114,9 +114,9 @@ namespace ImageSharp.PixelFormats |
|
|
|
public void ToRgb24(ref Rgb24 dest) |
|
|
|
{ |
|
|
|
Vector4 vector = this.ToScaledVector4(); |
|
|
|
dest.R = (byte)MathF.Round(vector.X); |
|
|
|
dest.G = (byte)MathF.Round(vector.Y); |
|
|
|
dest.B = (byte)MathF.Round(vector.Z); |
|
|
|
dest.R = (byte)vector.X; |
|
|
|
dest.G = (byte)vector.Y; |
|
|
|
dest.B = (byte)vector.Z; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
@ -124,10 +124,10 @@ namespace ImageSharp.PixelFormats |
|
|
|
public void ToRgba32(ref Rgba32 dest) |
|
|
|
{ |
|
|
|
Vector4 vector = this.ToScaledVector4(); |
|
|
|
dest.R = (byte)MathF.Round(vector.X); |
|
|
|
dest.G = (byte)MathF.Round(vector.Y); |
|
|
|
dest.B = (byte)MathF.Round(vector.Z); |
|
|
|
dest.A = (byte)MathF.Round(vector.W); |
|
|
|
dest.R = (byte)vector.X; |
|
|
|
dest.G = (byte)vector.Y; |
|
|
|
dest.B = (byte)vector.Z; |
|
|
|
dest.A = (byte)vector.W; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
@ -135,9 +135,9 @@ namespace ImageSharp.PixelFormats |
|
|
|
public void ToBgr24(ref Bgr24 dest) |
|
|
|
{ |
|
|
|
Vector4 vector = this.ToScaledVector4(); |
|
|
|
dest.R = (byte)MathF.Round(vector.X); |
|
|
|
dest.G = (byte)MathF.Round(vector.Y); |
|
|
|
dest.B = (byte)MathF.Round(vector.Z); |
|
|
|
dest.R = (byte)vector.X; |
|
|
|
dest.G = (byte)vector.Y; |
|
|
|
dest.B = (byte)vector.Z; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
@ -145,10 +145,10 @@ namespace ImageSharp.PixelFormats |
|
|
|
public void ToBgra32(ref Bgra32 dest) |
|
|
|
{ |
|
|
|
Vector4 vector = this.ToScaledVector4(); |
|
|
|
dest.R = (byte)MathF.Round(vector.X); |
|
|
|
dest.G = (byte)MathF.Round(vector.Y); |
|
|
|
dest.B = (byte)MathF.Round(vector.Z); |
|
|
|
dest.A = (byte)MathF.Round(vector.W); |
|
|
|
dest.R = (byte)vector.X; |
|
|
|
dest.G = (byte)vector.Y; |
|
|
|
dest.B = (byte)vector.Z; |
|
|
|
dest.A = (byte)vector.W; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|