public void addWeighted(double weight, PixelStruct pix) { this.r += (int)(weight * (double)pix.r); this.g += (int)(weight * (double)pix.g); this.b += (int)(weight * (double)pix.b); this.a += (int)(weight * (double)pix.a); }
public Pixel() { this.p = default(PixelStruct); }
public Pixel() { p = default(PixelStruct); }