Interpolation of the curve will be linear or via b-spline.
999
Invalid pixels have transparency set to 100% yet they are not black. These pixels are inverting background color if used on cursors. They should not be present in normal images.
1000
Invert color of each pixel (subtract its color from white).