• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Internals: Crop values
#6
I use the MediaBox for the page dimensions. i believe I am setting the right value of the crop rectangle to pageWidth - 1 and the bottom value to pageHeight - 1 if you drag the cropping boxes all the way to the edges of the page. If you clear the cropping, I set it to 0,0,0,0, so that's how you can identify when no crop has been applied. During some of my processing, if I calculate that cropping was applied, I set pageWidth = width of the cropping box + 1, and pageHeight = height of the cropping box + 1, and verify that I haven't exceeded the raw page dimensions (otherwise I clamp).
Reply


Messages In This Thread
Internals: Crop values - by sciurius - 07-05-2017, 05:12 AM
RE: Internals: Crop values - by BRX - 07-05-2017, 05:27 AM
RE: Internals: Crop values - by sciurius - 07-05-2017, 05:18 PM
RE: Internals: Crop values - by Zubersoft - 07-05-2017, 05:37 AM
RE: Internals: Crop values - by sciurius - 07-05-2017, 05:17 PM
RE: Internals: Crop values - by Zubersoft - 07-06-2017, 02:16 AM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.