- 1
- 2
- 3
- 4
foreach (Label ticketText in ticketFieldsToPrint)
{
g.DrawString(ticketText.Text, ticketFont, Brushes.Black, new PointF((Int32.Parse(iLeft.Text) * Int32.Parse(PPm.Text) / Int32.Parse(PPm.Text)) + ticketText.Left / Int32.Parse(PPm.Text), ((Int32.Parse(iTop.Text) * Int32.Parse(PPm.Text)) / Int32.Parse(PPm.Text)) + ticketText.Top / Int32.Parse(PPm.Text)));
}
guest 02.11.2009 19:36 # 0
{
int x1 = Int32.Parse(iLeft.Text);
int x2 = Int32.Parse(PPm.Text);
int x3 = Int32.Parse(iTop.Text);
g.DrawString(ticketText.Text, ticketFont, Brushes.Black,
new PointF((x1 * x2 / x2) + ticketText.Left / x2, ((x3 * x2) / x2) + ticketText.Top / x2));
}