c# - How do I draw an X? -


so tried draw x:

e.graphics.smoothingmode = system.drawing.drawing2d.smoothingmode.highquality; e.graphics.drawline(new pen(color.black, 1),                       this.width + 20 - 50,                        20,                        this.width + 25 - 50,                       10);  e.graphics.drawline(new pen(color.black, 1),                        this.width - 20 + 50,                        20,                        this.width + 25 - 50,                       10); 

but looks axe. no matter values put second line code, it's not right.

10 x 10 x add position self

e.graphics.smoothingmode = system.drawing.drawing2d.smoothingmode.highquality; e.graphics.drawline(new pen(color.black, 1),                       1,                        1,                        10,                       10);  e.graphics.drawline(new pen(color.black, 1),                        1,                        10,                        10,                       1); 

Comments