​Your surface is 300*300*3 (3D), since it is RGB, but your array is only
300*300 (2D).

Reply via email to