public int DistanceTo(ARGBPixel p)
        {
            int val  = A - p.A;
            int dist = val * val;

            val   = R - p.R;
            dist += val * val;
            val   = G - p.G;
            dist += val * val;
            val   = B - p.B;
            return(dist + val);
        }
 public ARGBPixel Max(ARGBPixel p)
 {
     return(new ARGBPixel(Math.Max(A, p.A), Math.Max(R, p.R), Math.Max(G, p.G), Math.Max(B, p.B)));
 }
 public ARGBPixel Min(ARGBPixel p)
 {
     return(new ARGBPixel(Math.Min(A, p.A), Math.Min(R, p.R), Math.Min(G, p.G), Math.Min(B, p.B)));
 }