Exemple #1
0
 public readonly Rgba64 ToRgba64()
 {
     return(new Rgba64(
                ScalingHelper.ToUInt16(R),
                ScalingHelper.ToUInt16(G),
                ScalingHelper.ToUInt16(B)));
 }
Exemple #2
0
 public void FromColor(Bgr24 source)
 {
     R = ScalingHelper.ToUInt16(source.R);
     G = ScalingHelper.ToUInt16(source.G);
     B = ScalingHelper.ToUInt16(source.B);
 }
Exemple #3
0
 public void FromGray(GrayAlpha16 source) => R = G = B = ScalingHelper.ToUInt16(source.L);
Exemple #4
0
 /// <summary>
 /// Constructs the packed vector with a vector form value.
 /// </summary>
 /// <param name="alpha">The W component.</param>
 public Alpha16(float alpha)
 {
     A = ScalingHelper.ToUInt16(alpha);
 }