public void ToRgb48(ref Rgb48 dest) => dest.PackFromScaledVector4(this.ToScaledVector4());
public void FromRgb48(Rgb48 source) => this.FromScaledVector4(source.ToScaledVector4());
public void FromRgb48(Rgb48 source) { this.R = ImageMaths.DownScaleFrom16BitTo8Bit(source.R); this.G = ImageMaths.DownScaleFrom16BitTo8Bit(source.G); this.B = ImageMaths.DownScaleFrom16BitTo8Bit(source.B); }
public void ToRgb48(ref Rgb48 dest) { dest.R = 0; dest.G = 0; dest.B = 0; }
public void PackFromRgb48(Rgb48 source) => this.PackedValue = byte.MaxValue;
public void PackFromRgb48(Rgb48 source) { this.R = (byte)(((source.R * 255) + 32895) >> 16); this.G = (byte)(((source.G * 255) + 32895) >> 16); this.B = (byte)(((source.B * 255) + 32895) >> 16); }
public void FromRgb48(Rgb48 source) { this.R = ColorNumerics.DownScaleFrom16BitTo8Bit(source.R); this.G = ColorNumerics.DownScaleFrom16BitTo8Bit(source.G); this.B = ColorNumerics.DownScaleFrom16BitTo8Bit(source.B); }