Anonymous user
Bilinear interpolation: Difference between revisions
m
Fixed mistake in color blerp
m (Fixed mistake in color blerp) |
|||
Line 85:
int red = (int)Blerp(c00.R, c10.R, c01.R, c11.R, gx - gxi, gy - gyi);
int green = (int)Blerp(c00.G, c10.G, c01.G, c11.
int blue = (int)Blerp(c00.B, c10.B, c01.B, c11.
Color rgb = Color.FromArgb(red, green, blue);
newImage.SetPixel(x, y, rgb);
|