public void FromRgb24(Rgb24 source) { this.R = ImageMaths.UpscaleFrom8BitTo16Bit(source.R); this.G = ImageMaths.UpscaleFrom8BitTo16Bit(source.G); this.B = ImageMaths.UpscaleFrom8BitTo16Bit(source.B); }
public void FromRgb24(Rgb24 source) => this.FromScaledVector4(source.ToScaledVector4());
public void FromRgb24(Rgb24 source) { this.R = ColorNumerics.UpscaleFrom8BitTo16Bit(source.R); this.G = ColorNumerics.UpscaleFrom8BitTo16Bit(source.G); this.B = ColorNumerics.UpscaleFrom8BitTo16Bit(source.B); }
public void ToRgb24(ref Rgb24 dest) { dest = default(Rgb24); }
public void ToRgb24(ref Rgb24 dest) { dest.R = (byte)(((this.R * 255) + 32895) >> 16); dest.G = (byte)(((this.G * 255) + 32895) >> 16); dest.B = (byte)(((this.B * 255) + 32895) >> 16); }
public void ToRgb24(ref Rgb24 dest) { dest.R = this.R; dest.G = this.G; dest.B = this.B; }
public void FromRgb24(Rgb24 source) { this.R = source.R; this.G = source.G; this.B = source.B; }