|
|
səhifə | 8/24 | tarix | 10.05.2023 | ölçüsü | 117,5 Kb. | | #110606 |
| dep-materiallar-varaq (1)
{
DMK[0, i].Value = s2[i];
DMK[1, i].Value = s1[i, 0]; DMK[2, i].Value = s1[i, 1];
}
PicBox.Visible = true;
// listBox1.Visible = false;
// StreamReader reader = new StreamReader("d:\\Natija.txt");
graphics = PicBox.CreateGraphics();
graphics.Clear(Color.White);
Pen myPen = new Pen(Color.Black);
float mkk = PicBox.Width, Mkk = mkk -200, koef = 100;
//koef = mkk / k1; //mkk Image1 ning o'lchami
myPen.Width = 1;
myPen.Color = Color.Blue;
Brush myBrush = new SolidBrush(myPen.Color);
PointF nuqta2=new PointF(),nuqta1=new PointF();
Font font = new Font(FontFamily.GenericSerif, 10);
float x, y;
int xr = 40, xl = 10, xp = 10, j = 0; ;
nuqta1.X = (float)(0 * koef) + xr;
nuqta1.Y = Mkk - (float)(0 * koef);
nuqta2.X = (float)(0* koef) + xr;
nuqta2.Y = Mkk - (float)(60 * koef);
graphics.DrawLine(myPen, nuqta1, nuqta2);
nuqta1.X = (float)(0 * koef) + xr;
nuqta1.Y = Mkk - (float)(0 * koef);
nuqta2.X = (float)(60 * koef) + xr;
nuqta2.Y = Mkk - (float)(0 * koef);
graphics.DrawLine(myPen, nuqta1, nuqta2);
for (i = 1; i < 9; i++)
{
nuqta1.X = (float)(s[i - 1, 0] * koef) + xr;
nuqta1.Y = Mkk - (float)(s[i - 1, 1] * koef);
nuqta2.X = (float)(s[i , 0] * koef) + xr;
nuqta2.Y = Mkk - (float)(s[i , 1] * koef);
graphics.DrawLine(myPen,nuqta1,nuqta2);
}
for (i = 1; i < 9; i++)
{
nuqta1.X = (float)(s1[i - 1, 0] * koef) + xr;
nuqta1.Y = Mkk - (float)(s1[i - 1, 1] * koef);
nuqta2.X = (float)(s1[i, 0] * koef) + xr;
nuqta2.Y = Mkk - (float)(s1[i, 1] * koef);
Dostları ilə paylaş: |
|
|