示例#1
0
        public static STColor16 FromShorts(ushort[] color)
        {
            STColor16 col = new STColor16();

            col.R = color[0];
            col.G = color[1];
            col.B = color[2];
            col.A = color[3];
            return(col);
        }
 public STColor16 ToColor16()
 {
     return(STColor16.FromShorts(new ushort[4] {
         R, G, B, A
     }));
 }