Extensions.cs 429 B

1234567891011121314151617181920
  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.Utils
  7. {
  8. public static class HpglExtensions
  9. {
  10. public static PointF[] InvertY(this PointF[] points)
  11. {
  12. for (int i = 0; i < points.Length; i++)
  13. {
  14. points[i].Y *= -1;
  15. }
  16. return points;
  17. }
  18. }
  19. }