예제 #1
0
 private void tbYTransform_Scroll(object sender, EventArgs e)
 {
     centrePoint.Y           = tbYTransform.Value;
     centrePoint.X           = tbXTransform.Value;
     picMain.BackgroundImage = GraphicsRenderer.DrawCube(picMain, tbXRotate.Value, _yAngle, tbZRotate.Value, centrePoint, tbLength.Value);
 }
예제 #2
0
 private void Perspective_Resize(object sender, EventArgs e)
 {
     centrePoint             = new Point((picMain.Width / 2), (picMain.Height / 2) + 200);
     picMain.BackgroundImage = GraphicsRenderer.DrawCube(picMain, tbXRotate.Value, _yAngle, tbZRotate.Value, centrePoint, tbLength.Value);
 }