public MprStlRect() { Printed = false; Border = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; Pen = new MprStlPen(); BackGroundColor = Color.Transparent; }
public MprStlEllp() { Printed = false; HasBorder = true; Pen = new MprStlPen(); BackGroundColor = Color.Transparent; }
public MprObjLine(string id_rpt_obj, ObjectSection s) { ID = null; IDReport = id_rpt_obj; Name = "Line" + DateTime.Now.ToLongTimeString(); Category = ObjectCategory.Line; Section = s; Index = 0; Printed = true; Type = ObjectType.Static; RotateAngle = 0; Point1 = new Point(0, 0); Point2 = new Point(500, 100); Style = new MprStlPen(); }
void DrawLine(int x1, int y1, int x2, int y2, MprStlPen style) { SetPEN(style); G.DrawLine(PEN, x1, y1, x2, y2); }
void SetPEN(MprStlPen s) { PEN.Color = s.Color; PEN.Width = s.Weight; }