public class scan { int x0, y0, w0, h0; System.Drawing.Graphics zona_des; public void desenez(System.Drawing.Pen creion_a) { zona_des.DrawRectangle(creion_a, x0, y0, w0, h0); } public void sterg(System.Drawing.Brush rad) { zona_des.FillRectangle(rad, x0 + 1, y0 + 1, w0 - 1, h0 - 1); } public void set_vline(System.Drawing.Pen creion, int pozx_line) { zona_des.DrawLine(creion, x0 + pozx_line, y0 + 1, x0 + pozx_line, y0 + h0 - 1); } public void set_hline(System.Drawing.Pen creion, int pozy_line) { zona_des.DrawLine(creion, x0 +1, y0 + pozy_line, x0 + w0-1, y0+pozy_line); } public scan(System.Drawing.Graphics desen, int pozx, int pozy, int lat, int inalt) { zona_des = desen; x0 = pozx; y0 = pozy; w0 = lat; h0 = inalt; } }