예제 #1
0
 public static byte ToGray8(Rgb24 rgb)
 {
     return(ToGray8(rgb.R, rgb.G, rgb.B));
 }
예제 #2
0
 public void FromColor(Rgb24 source)
 {
     R = ScalingHelper.ToUInt16(source.R);
     G = ScalingHelper.ToUInt16(source.G);
     B = ScalingHelper.ToUInt16(source.B);
 }
예제 #3
0
 public void FromColor(Rgb24 source) => FromScaledVector(source.ToScaledVector3());
예제 #4
0
 public void FromColor(Rgb24 source)
 {
     B = source.B;
     G = source.G;
     R = source.R;
 }