示例#1
0
 public void FromRgb24(Rgb24 source)
 {
     this.R = ImageMaths.UpscaleFrom8BitTo16Bit(source.R);
     this.G = ImageMaths.UpscaleFrom8BitTo16Bit(source.G);
     this.B = ImageMaths.UpscaleFrom8BitTo16Bit(source.B);
 }
示例#2
0
 public void FromRgb24(Rgb24 source) => this.FromScaledVector4(source.ToScaledVector4());
示例#3
0
 public void FromRgb24(Rgb24 source)
 {
     this.R = ColorNumerics.UpscaleFrom8BitTo16Bit(source.R);
     this.G = ColorNumerics.UpscaleFrom8BitTo16Bit(source.G);
     this.B = ColorNumerics.UpscaleFrom8BitTo16Bit(source.B);
 }
示例#4
0
 public void ToRgb24(ref Rgb24 dest)
 {
     dest = default(Rgb24);
 }
示例#5
0
 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);
 }
示例#6
0
 public void ToRgb24(ref Rgb24 dest)
 {
     dest.R = this.R;
     dest.G = this.G;
     dest.B = this.B;
 }
示例#7
0
文件: Bgr24.cs 项目: hnjm/ImageSharp
 public void FromRgb24(Rgb24 source)
 {
     this.R = source.R;
     this.G = source.G;
     this.B = source.B;
 }