Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace AlgoritmD
- {
- public partial class Panel
- {
- public static void CreateDot(Graphics g, Pen p, int x, int y, int width, int height)
- {
- g.DrawEllipse(p, x, y, width, height);
- g.FillEllipse(new SolidBrush(Color.Black), x, y, width, height);
- }
- public static void CreateDotName(Graphics g, int name, int x, int y)
- {
- g.DrawString(Convert.ToString(name), new Font("Times New Roman", 12, FontStyle.Regular), new SolidBrush(Color.Black), new PointF(x, y));
- }
- public static void CreateLine(Graphics g, Pen p, int x1, int y1, int x2, int y2)
- {
- g.DrawLine(p, x1, y1, x2, y2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement