Inheritance: GDIObject, IPen
Exemplo n.º 1
0
        public override void SetPen(IPen pen)
        {
            if (pen.Width <= 1)
            {
                Graphics.UseDefaultPen();
                Graphics.SetDefaultPenColor(pen.Color);
                return;
            }

            CurrentPen = new GDIPen(PenType.Geometric, PenStyle.Solid, pen.JoinStyle, pen.EndCap,
                pen.Color, pen.Width, Guid.NewGuid());
            Graphics.SetPen(CurrentPen);
        }
Exemplo n.º 2
0
 public virtual GDIPen CreatePen(PenType aType, PenStyle aStyle, PenJoinStyle aJoinStyle, PenEndCap aEndCap, Colorref colorref, int width, Guid uniqueID)
 {
     GDIPen aPen = new GDIPen(aType, aStyle, aJoinStyle, aEndCap, colorref, width, uniqueID);
     return aPen;
 }