private void main(object sender, System.EventArgs e) { images img = new images(); C = img.ImagesListColors(@"C:\Users\UnderKo\Downloads\unnamed.jpg"); for (int x = 0; x < img.X; x++) { for (int y = 0; y < img.Y; y++) { draw.AddVector(new Vector(0.0, (double)x, (double)y)); } } double A = new Angle().AngleToRadians(trackBar1.Value); double B = new Angle().AngleToRadians(trackBar2.Value); draw.Ang = new Angle(A, B, 0); draw.DrawPanel = this; draw.Draw3D(C); }