ImageEditParam.cs 690 B

1234567891011121314151617181920212223242526
  1. using ComPDFKit.Import;
  2. using ComPDFKit.PDFPage;
  3. namespace ComPDFKit.Tool
  4. {
  5. public class ImageEditParam:PDFEditParam
  6. {
  7. public ImageEditParam()
  8. {
  9. EditType = CPDFEditType.EditImage;
  10. }
  11. public CRect ClipRect { get; set; }
  12. public int Rotate { get; set; }
  13. public override bool CopyTo(PDFEditParam transfer)
  14. {
  15. ImageEditParam imageTransfer = transfer as ImageEditParam;
  16. if (imageTransfer == null || !base.CopyTo(imageTransfer))
  17. return false;
  18. imageTransfer.ClipRect = ClipRect;
  19. imageTransfer.Rotate = Rotate;
  20. return true;
  21. }
  22. }
  23. }