1.1 --- a/Client/MainForm.cs Mon Oct 13 20:05:48 2014 +0200
1.2 +++ b/Client/MainForm.cs Mon Oct 13 21:21:53 2014 +0200
1.3 @@ -160,19 +160,21 @@
1.4 iClient.SetLayout(layout);
1.5 }
1.6
1.7 - private void button1_Click(object sender, EventArgs e)
1.8 + private void buttonSetBitmap_Click(object sender, EventArgs e)
1.9 {
1.10 - Bitmap bitmap = new Bitmap(60,60);
1.11 + int x1 = 0;
1.12 + int y1 = 0;
1.13 + int x2 = 256;
1.14 + int y2 = 32;
1.15 +
1.16 + Bitmap bitmap = new Bitmap(x2,y2);
1.17 Pen blackPen = new Pen(Color.Black, 3);
1.18
1.19 - int x1 = 0;
1.20 - int y1 = 0;
1.21 - int x2 = 60;
1.22 - int y2 = 60;
1.23 // Draw line to screen.
1.24 using (var graphics = Graphics.FromImage(bitmap))
1.25 {
1.26 graphics.DrawLine(blackPen, x1, y1, x2, y2);
1.27 + graphics.DrawLine(blackPen, x1, y2, x2, y1);
1.28 }
1.29
1.30 iClient.SetBitmap(new BitmapField(0, bitmap));