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.RG, gx - gxi, gy - gyi);
int blue = (int)Blerp(c00.B, c10.B, c01.B, c11.RB, gx - gxi, gy - gyi);
Color rgb = Color.FromArgb(red, green, blue);
newImage.SetPixel(x, y, rgb);
Anonymous user