コード例 #1
0
 public GDI_BrokenLine(List <PointF> pts) : base(pts)
 {
     tools          = new GDIPlusTools(this, this, pts.GetBounds());
     tools.Drawing += Tools_Drawing;
     //tools.Preparing += Tools_Preparing;
     PropertyChanged += GDI_BrokenLine_PropertyChanged;
 }
コード例 #2
0
ファイル: GDI_Ellipse.cs プロジェクト: RayMMond/Draw.NET
 public GDI_Ellipse(PointF location, SizeF size) : base(location, size)
 {
     rect             = new RectangleF(location, size);
     tools            = new GDIPlusTools(this, this, rect);
     tools.Drawing   += Tools_Drawing;
     PropertyChanged += GDI_Ellipse_PropertyChanged;
     //tools.Preparing += Tools_Preparing;
 }
コード例 #3
0
 public GDI_Text() : base()
 {
     tools          = new GDIPlusTools(this, this, new RectangleF(location, stringSize));
     tools.Drawing += Tools_Drawing;
     //tools.Preparing += Tools_Preparing;
     PropertyChanged += GDI_Text_PropertyChanged;
     font             = new Font(FamilyName, FontSize, GraphicsUnit.Pixel);
     sf = new StringFormat
     {
         Alignment     = alignment,
         LineAlignment = lineAlignment,
         Trimming      = trimming
     };
     brush = new SolidBrush(textColor);
 }