Beispiel #1
0
 public MyRectangle(MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     fillStyle          = settings.FillStyle;
     hatchStyle         = settings.HatchStyle;
     imageTexture       = settings.TextureBrushImage;
     imageTextureString = new MyImage(settings.TextureBrushImage);
 }
Beispiel #2
0
 public MyText(String _text, Point _coord, MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     text   = _text;
     coord  = _coord;
     myFont = new MyFont(settings.font);
     font   = myFont.toFont();
 }
Beispiel #3
0
 public MyParabol(List <Point> lsPoint, MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     polyPoint = new List <PointF>();
     foreach (var item in lsPoint)
     {
         polyPoint.Add(item);
     }
 }
Beispiel #4
0
 public MyRectangle(Point _startPoint, Point _endPoint, MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     startPoint         = _startPoint;
     endPoint           = _endPoint;
     fillStyle          = settings.FillStyle;
     hatchStyle         = settings.HatchStyle;
     imageTexture       = settings.TextureBrushImage;
     imageTextureString = new MyImage(settings.TextureBrushImage);
 }
Beispiel #5
0
 public Shape(int _name, MyPaintSettings settings)
 {
     myPrimaryColor = new MyColor(settings.PrimaryColor);
     mySecondColor  = new MyColor(settings.SecondaryColor);
     myOutlineColor = new MyColor(settings.OutlineColor);
     stt            = _name;
     primaryColor   = myPrimaryColor.ToColor();
     secondColor    = mySecondColor.ToColor();
     outlineColor   = myOutlineColor.ToColor();
     width          = settings.Width;
     lineStyle      = settings.LineStyle;
     angleIn        = 0;
 }
Beispiel #6
0
 public MyHyperbol(List <Point> lsPoint, MyPaintSettings settings, int _name)
     : base(lsPoint, settings, _name)
 {
 }
Beispiel #7
0
 public MyArcEllipse(Point _startPoint, Point _endPoint, int _alpha, MyPaintSettings settings, int _name)
     : base(_startPoint, _endPoint, settings, _name)
 {
     alpha = _alpha;
 }
Beispiel #8
0
 public MyBezier(List <Point> lsPoint, MyPaintSettings settings, int _name)
     : base(lsPoint, settings, _name)
 {
 }
Beispiel #9
0
 public MyCircle(Point _startPoint, Point _endPoint, MyPaintSettings settings, int _name)
     : base(_startPoint, _endPoint, settings, _name)
 {
 }
Beispiel #10
0
 public MyPolygon(List <Point> lsPoint, MyPaintSettings settings, int _name) : base(settings, _name)
 {
     polyPoint = lsPoint;
 }
Beispiel #11
0
 public StraightLine(MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
 }
Beispiel #12
0
 public StraightLine(Point _startPoint, Point _endPoint, MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     startPoint = _startPoint;
     endPoint   = _endPoint;
 }
Beispiel #13
0
 public MyParallelogram(Point _startPoint, Point _endPoint, MyPaintSettings settings, int _name)
     : base(_startPoint, _endPoint, settings, _name)
 {
     alpha = -50;
 }
Beispiel #14
0
 public MyPolyline(List <Point> lsPoint, MyPaintSettings settings, int _name)
     : base(_name, settings)
 {
     polyPoint = lsPoint;
 }
Beispiel #15
0
 public ToolSettings(Bitmap bmp, PictureBox picBox, MyPaintSettings settings)
 {
     bitmap        = bmp;
     pictureBox    = picBox;
     this.settings = settings;
 }