Example #1
0
 public void FromRgba64(Rgba64 source) => this.FromScaledVector4(source.ToScaledVector4());
Example #2
0
 public void ToRgba64(ref Rgba64 dest) => dest.PackFromScaledVector4(this.ToScaledVector4());
Example #3
0
 public void FromRgba64(Rgba64 source)
 {
     this.R = ImageMaths.DownScaleFrom16BitTo8Bit(source.R);
     this.G = ImageMaths.DownScaleFrom16BitTo8Bit(source.G);
     this.B = ImageMaths.DownScaleFrom16BitTo8Bit(source.B);
 }
Example #4
0
 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);
 }
Example #5
0
 public void FromRgba64(Rgba64 source) => this = source.Rgb;
Example #6
0
 public void FromRgba64(Rgba64 source)
 {
     this.R = ColorNumerics.DownScaleFrom16BitTo8Bit(source.R);
     this.G = ColorNumerics.DownScaleFrom16BitTo8Bit(source.G);
     this.B = ColorNumerics.DownScaleFrom16BitTo8Bit(source.B);
 }