PathEditParam.cs 875 B

12345678910111213141516171819202122232425262728293031
  1. using ComPDFKit.Import;
  2. using ComPDFKit.PDFPage;
  3. namespace ComPDFKit.Tool
  4. {
  5. public class PathEditParam:PDFEditParam
  6. {
  7. public PathEditParam()
  8. {
  9. EditType = CPDFEditType.EditPath;
  10. }
  11. public byte[] StrokeColor { get; set; }
  12. public byte[] FillColor { get; set; }
  13. public CRect ClipRect { get; set; }
  14. public int Rotate { get; set; }
  15. public override bool CopyTo(PDFEditParam transfer)
  16. {
  17. PathEditParam pathTransfer = transfer as PathEditParam;
  18. if (pathTransfer == null || !base.CopyTo(pathTransfer))
  19. return false;
  20. pathTransfer.StrokeColor = StrokeColor;
  21. pathTransfer.FillColor = FillColor;
  22. pathTransfer.ClipRect = ClipRect;
  23. pathTransfer.Rotate = Rotate;
  24. return true;
  25. }
  26. }
  27. }