BlazorExportUtils.cs 710 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using System.Text;
  7. using FastReport;
  8. using FastReport.Utils;
  9. using FastReport.Export;
  10. using System.Drawing;
  11. using System.Drawing.Imaging;
  12. namespace FastReport.Web.Blazor.Export
  13. {
  14. public partial class BlazorExport
  15. {
  16. private static string HTMLColor(in Color color)
  17. {
  18. return ColorTranslator.ToHtml(color);
  19. }
  20. private static string Px(double pixel)
  21. {
  22. return ExportUtils.FloatToString(pixel);
  23. }
  24. private static string PxClosed(double pixel)
  25. {
  26. return Px(pixel) + "px;";
  27. }
  28. }
  29. }