BackgroundCreateModel.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using ComPDFKit.PDFDocument;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDF_Office.Model.EditTools.Background
  8. {
  9. public class BackgroundCreateModel
  10. {
  11. }
  12. public enum EnumBackgroundType
  13. {
  14. StatusColor,
  15. StatusFile
  16. }
  17. public class BackgroundInfo
  18. {
  19. /// <summary>
  20. /// 背景类型
  21. /// </summary>
  22. public C_Background_Type BackgroundType = C_Background_Type.BG_TYPE_COLOR;
  23. /// <summary>
  24. /// 纯色背景颜色
  25. /// </summary>
  26. public byte[] Color;
  27. /// <summary>
  28. /// 图片背景数据
  29. /// </summary>
  30. public byte[] ImageArray;
  31. /// <summary>
  32. /// 背景旋转角度
  33. /// </summary>
  34. public float Rotation;
  35. /// <summary>
  36. /// 背景透明度
  37. /// </summary>
  38. public byte Opacity;
  39. /// <summary>
  40. ///
  41. /// </summary>
  42. public float Scale;
  43. /// <summary>
  44. /// 背景相对垂直距离;
  45. /// </summary>
  46. public float VertOffset = 0;
  47. /// <summary>
  48. /// 背景相对水平距离;
  49. /// </summary>
  50. public float HorizOffset = 0;
  51. /// <summary>
  52. /// 图片背景:宽度
  53. /// </summary>
  54. public int ImageWidth;
  55. /// <summary>
  56. /// 图片背景:长度
  57. /// </summary>
  58. public int ImageHeight;
  59. /// <summary>
  60. ///垂直位置
  61. /// </summary>
  62. public C_Background_Vertalign Vertalign;
  63. /// <summary>
  64. /// 水平位置
  65. /// </summary>
  66. public C_Background_Horizalign Horizalign;
  67. /// <summary>
  68. /// 页码范围
  69. /// </summary>
  70. public string PageRange = "0";
  71. /// <summary>
  72. /// 页面范围索引;
  73. /// 0:全部页面
  74. /// 1:奇数页
  75. /// 2;偶数页
  76. /// 3:自定义页
  77. /// </summary>
  78. public int PageRangeIndex = 0;
  79. /// <summary>
  80. /// -
  81. /// </summary>
  82. public bool IsRelativeScale = true;
  83. }
  84. }