Программа вращения фигуры вокруг заданной точки
Файл Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication8
{
public partial class Form1 : Form
{
ObjectCreater objectCreater = new ObjectCreater();
ObjectTransform objectTransform = new ObjectTransform();
Graphics graphics;
float angle;
PointF pointf;
float x;
float y;
int offsetx;
int offsety;
int dx;
int dy;
//Image image;
public Form1()
{
InitializeComponent();
angle = 0;
x = 150;
y = 150;
pointf = new PointF(x, y);
offsetx = 0;
offsety = 0;
dx = 1;
dy = 1;
}
private void button1_Click(object sender, EventArgs e)
{
}
private void pictureBox1_Paint(obj
...
Читать дальше »