public void ToRgb48(ref Rgb48 dest) => dest.PackFromScaledVector4(this.ToScaledVector4());
示例#2
0
 public void FromRgb48(Rgb48 source) => this.FromScaledVector4(source.ToScaledVector4());
示例#3
0
文件: Rgb24.cs 项目: wilka/ImageSharp
 public void FromRgb48(Rgb48 source)
 {
     this.R = ImageMaths.DownScaleFrom16BitTo8Bit(source.R);
     this.G = ImageMaths.DownScaleFrom16BitTo8Bit(source.G);
     this.B = ImageMaths.DownScaleFrom16BitTo8Bit(source.B);
 }
示例#4
0
 public void ToRgb48(ref Rgb48 dest)
 {
     dest.R = 0;
     dest.G = 0;
     dest.B = 0;
 }
示例#5
0
 public void PackFromRgb48(Rgb48 source) => this.PackedValue = byte.MaxValue;
示例#6
0
 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);
 }
示例#7
0
 public void FromRgb48(Rgb48 source)
 {
     this.R = ColorNumerics.DownScaleFrom16BitTo8Bit(source.R);
     this.G = ColorNumerics.DownScaleFrom16BitTo8Bit(source.G);
     this.B = ColorNumerics.DownScaleFrom16BitTo8Bit(source.B);
 }