diff -r 6e50baf5a811 -r 1d0cd5e6e0a9 Client/MainForm.cs --- a/Client/MainForm.cs Mon Oct 13 20:05:48 2014 +0200 +++ b/Client/MainForm.cs Mon Oct 13 21:21:53 2014 +0200 @@ -160,19 +160,21 @@ iClient.SetLayout(layout); } - private void button1_Click(object sender, EventArgs e) + private void buttonSetBitmap_Click(object sender, EventArgs e) { - Bitmap bitmap = new Bitmap(60,60); + int x1 = 0; + int y1 = 0; + int x2 = 256; + int y2 = 32; + + Bitmap bitmap = new Bitmap(x2,y2); Pen blackPen = new Pen(Color.Black, 3); - int x1 = 0; - int y1 = 0; - int x2 = 60; - int y2 = 60; // Draw line to screen. using (var graphics = Graphics.FromImage(bitmap)) { graphics.DrawLine(blackPen, x1, y1, x2, y2); + graphics.DrawLine(blackPen, x1, y2, x2, y1); } iClient.SetBitmap(new BitmapField(0, bitmap));