public void FromRgba64(Rgba64 source) => this.FromScaledVector4(source.ToScaledVector4());
public void ToRgba64(ref Rgba64 dest) => dest.PackFromScaledVector4(this.ToScaledVector4());
public void FromRgba64(Rgba64 source) { this.R = ImageMaths.DownScaleFrom16BitTo8Bit(source.R); this.G = ImageMaths.DownScaleFrom16BitTo8Bit(source.G); this.B = ImageMaths.DownScaleFrom16BitTo8Bit(source.B); }
public void PackFromRgba64(Rgba64 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 FromRgba64(Rgba64 source) => this = source.Rgb;
public void FromRgba64(Rgba64 source) { this.R = ColorNumerics.DownScaleFrom16BitTo8Bit(source.R); this.G = ColorNumerics.DownScaleFrom16BitTo8Bit(source.G); this.B = ColorNumerics.DownScaleFrom16BitTo8Bit(source.B); }