Пример #1
0
 private void InitFields(int x, int y, int width, int height, int deform)
 {
     LeftTop = new StrPoint {
         X = x.ToString(), Y = y.ToString()
     };
     LeftBottom = new StrPoint {
         X = x.ToString(), Y = (y + height).ToString()
     };
     RightTop = new StrPoint {
         X = (x + width).ToString(), Y = (y + deform).ToString()
     };
     RightBottom = new StrPoint {
         X = (x + width).ToString(), Y = (y + height - deform).ToString()
     };
 }
 public TranslateAndScaleTransformation(int x, int y, int widht, int height)
 {
     //0:0:W:0:0:H:W:H
     LeftTop = new StrPoint {
         X = x.ToString(), Y = y.ToString()
     };
     RightTop = new StrPoint {
         X = (x + widht).ToString(), Y = y.ToString()
     };
     LeftBottom = new StrPoint {
         X = x.ToString(), Y = (y + height).ToString()
     };
     RightBottom = new StrPoint {
         X = (x + widht).ToString(), Y = (y + height).ToString()
     };
 }