InputP1P2.cs 565 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. namespace FastReport.Export.Hpgl.Commands
  7. {
  8. /// <summary>
  9. /// IP command
  10. /// Sets origin position of system of coordinates
  11. /// </summary>
  12. public class InputP1P2 : CommandBase<float>
  13. {
  14. public InputP1P2(PointF p1, PointF p2) : base()
  15. {
  16. Name = "IP";
  17. Parameters.Add(p1.X);
  18. Parameters.Add(p1.Y);
  19. Parameters.Add(p2.X);
  20. Parameters.Add(p2.Y);
  21. }
  22. }
  23. }