, Visual C#



56.1. .

// 'i' ;

int i = 0;

// Animation

// new :

Animation myAnimation = new Animation();

// Animation:

class Animation

{

// offsetX

// offsetY

// :

float offsetX = 6;

float offsetY = 2;

//

// :

float step_alpha = 6;

 

// GraphicsPath:

GraphicsPath myGraphicsPath = new GraphicsPath();

GraphicsPath myGraphicsPath2 = new GraphicsPath();

 

// Matrix

//- :

// myMatrix1 -

// myMatrix2 - :

Matrix myMatrix1 = new Matrix();

Matrix myMatrix2 = new Matrix();

//

// ( AddEllipse)

// ( AddLine):

public Animation()

{

myGraphicsPath.AddEllipse(70, 70, 100, 100);

myGraphicsPath.AddLine(75, 100, 165, 100);

myGraphicsPath.AddLine(75, 140, 165, 140);

//

// myGraphicsPath2

// myGraphicsPath:

myGraphicsPath2 =

(GraphicsPath)myGraphicsPath.Clone();

}

 

// FigureDraw

// :

public void FigureDraw(Graphics myGraphics, int j)

{

// :

myMatrix2.Translate(offsetX, offsetY);

 

//

// myGraphicsPath