Convert Measurement Units

IronDrawing provides option for users who wants to change the measurement unit used in CropRectangle from pixels (px) to milimeters (mm) or vice versa. Default measurement unit used in CropRectangle is pixels (px).

After a new CropRectangle with measurements specified has been instantiated, call the conversion method to the CropRectangle. For example .ConvertTo(MeasurementUnits.Millimeters, 20). This will convert the measurement sof the CropRectangle to millimeters based on the DPI set by users.