Example #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);
 }
Example #2
0
 public void FromRgb24(Rgb24 source) => this.FromScaledVector4(source.ToScaledVector4());
Example #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);
 }
Example #4
0
 public void ToRgb24(ref Rgb24 dest)
 {
     dest = default(Rgb24);
 }
Example #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);
 }
Example #6
0
 public void ToRgb24(ref Rgb24 dest)
 {
     dest.R = this.R;
     dest.G = this.G;
     dest.B = this.B;
 }
Example #7
0
 public void FromRgb24(Rgb24 source)
 {
     this.R = source.R;
     this.G = source.G;
     this.B = source.B;
 }