Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to divide the image into picturebox ? changing the size in centimeters ! as in-app "ace poster"
Posted

1 solution

The HorizontalResolution and VerticalResolution properties contain the resolution in DPI of that Image object. Wifth and Height will give you the actual size in pixels. It is simple to calculate how many pixels represent a centimeter. At that point you can define the rectangle that equals to an A4 sheet. You can use Bitmap.Clone[^] to extract the tiles.
Just a note: if you want all this to print in tiles, you should care about the non-printable margins and of the overlap.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900