|
nuqta[3].X = (float)(MK[MN[i].i - 1].x * koef) + xr
|
səhifə | 10/24 | tarix | 10.05.2023 | ölçüsü | 117,5 Kb. | | #110606 |
| dep-materiallar-varaq (1)
nuqta[3].X = (float)(MK[MN[i].i - 1].x * koef) + xr;
nuqta[3].Y = Mkk - (float)(MK[MN[i].i - 1].y * koef);
graphics.DrawPolygon(myPen, nuqta);
}
// else*/
/*for(;j<4;j++)
{
nuqta[0].X = (float)(MK[MN[i].i - 1].x * koef) + xr+xl*j;
nuqta[0].Y = Mkk - (float)(MK[MN[i].i - 1].y * koef);
nuqta[1].X = (float)(MK[MN[i].j - 1].x * koef) + xr+xl*j;
nuqta[1].Y = Mkk - (float)(MK[MN[i].j - 1].y * koef);
nuqta[2].X = (float)(MK[MN[i].k - 1].x * koef) + xr+ xl*j ;
nuqta[2].Y = Mkk - (float)(MK[MN[i].k - 1].y * koef);
nuqta[3].X = (float)(MK[MN[i].i - 1].x * koef) + xr+ xl * j;
nuqta[3].Y = Mkk - (float)(MK[MN[i].i - 1].y * koef) ;
graphics.DrawPolygon(myPen, nuqta);
x = (nuqta[0].X+ nuqta[1].X + nuqta[2].X )/3-10;
y = (nuqta[0].Y + nuqta[1].Y + nuqta[2].Y) / 3-10;
graphics.DrawString(i.ToString(), font, myBrush, x, y);
}
if (j < 7) j++;
else
{
j = 0;
Mkk -= 5;
}
*/
}
for (i = 1; i <= n; i++)
{
x = (float)((MK[i - 1].x) * koef) + xr;
y = Mkk - (float)((MK[i - 1].y) * koef);
graphics.DrawString(i.ToString(), font, myBrush, x, y);
}
/* int xr = 40;
for (i = 0; i < m; i++)
{
nuqta[0].X = (float)(MK[MN[i].i - 1].x * koef) + xr;
nuqta[0].Y = Mkk - (float)(MK[MN[i].i - 1].y * koef);
nuqta[1].X = (float)(MK[MN[i].j - 1].x * koef) + xr;
nuqta[1].Y = Mkk - (float)(MK[MN[i].j - 1].y * koef);
nuqta[2].X = (float)(MK[MN[i].k - 1].x * koef) + xr;
nuqta[2].Y = Mkk - (float)(MK[MN[i].k - 1].y * koef);
nuqta[3].X = (float)(MK[MN[i].i - 1].x * koef) + xr;
Dostları ilə paylaş: |
|
|