星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Model_DrawData.cs 2.7KB

4 jaren geleden
4 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Media;
  8. namespace XHWK.Model
  9. {
  10. /// <summary>
  11. /// 画板模型
  12. /// </summary>
  13. public class Model_DrawData
  14. {
  15. private int _PageNum;
  16. private string _pageCode;
  17. private string _pageImagePath;
  18. private TranslateTransform _ImageLocation=new TranslateTransform(0,0);
  19. //private ScaleTransform _ImageSize = new ScaleTransform(0, 0);
  20. private ScaleTransform _ImageSizes = new ScaleTransform(0, 0);
  21. private bool _IsImageLocation;
  22. //private string _PenColor;
  23. //private int _PenWigth;
  24. //private List<PointF> _Handwriting;
  25. private string _pdfImagePath;
  26. private bool _imgDocumentation;
  27. /// <summary>
  28. /// 页码
  29. /// </summary>
  30. public int PageNum { get => _PageNum; set => _PageNum = value; }
  31. /// <summary>
  32. /// 页编号
  33. /// </summary>
  34. public string PageCode { get => _pageCode; set => _pageCode = value; }
  35. /// <summary>
  36. /// 页面图片路径
  37. /// </summary>
  38. public string PageImagePath { get => _pageImagePath; set => _pageImagePath = value; }
  39. /// <summary>
  40. /// 图片坐标
  41. /// </summary>
  42. public TranslateTransform ImageLocation { get => _ImageLocation; set => _ImageLocation = value; }
  43. ///// <summary>
  44. ///// 图片大小
  45. ///// </summary>
  46. //public ScaleTransform ImageSize { get => _ImageSize; set => _ImageSize = value; }
  47. /// <summary>
  48. /// PDF 图片路径
  49. /// </summary>
  50. public string PdfImagePath { get => _pdfImagePath; set => _pdfImagePath = value; }
  51. /// <summary>
  52. /// 坐标是否固定
  53. /// </summary>
  54. public bool IsImageLocation { get => _IsImageLocation; set => _IsImageLocation = value; }
  55. /// <summary>
  56. /// true 文档图片 folse 截图图片
  57. /// </summary>
  58. public bool ImgDocumentation { get => _imgDocumentation; set => _imgDocumentation = value; }
  59. public ScaleTransform ImageSizes { get => _ImageSizes; set => _ImageSizes = value; }
  60. ///// <summary>
  61. ///// 笔颜色 十六进制
  62. ///// </summary>
  63. //public string PenColor { get => _PenColor; set => _PenColor = value; }
  64. ///// <summary>
  65. ///// 线宽
  66. ///// </summary>
  67. //public int PenWigth { get => _PenWigth; set => _PenWigth = value; }
  68. ///// <summary>
  69. ///// 笔迹 暂无
  70. ///// </summary>
  71. //public List<PointF> Handwriting { get => _Handwriting; set => _Handwriting = value; }
  72. }
  73. }