crop_bottom.Enabled = check_customCrop.Checked;\r
crop_left.Enabled = check_customCrop.Checked;\r
crop_right.Enabled = check_customCrop.Checked;\r
+\r
+ crop_top.Value = Source.AutoCropDimensions[0];\r
+ crop_bottom.Value = Source.AutoCropDimensions[1];\r
+ crop_left.Value = Source.AutoCropDimensions[2];\r
+ crop_right.Value = Source.AutoCropDimensions[3];\r
}\r
private void crop_ValueChanged(object sender, EventArgs e)\r
{\r
- Uses mod16-compliant dimensions,\r
- Allows users to set the width\r
*/\r
- width = (int)text_width.Value - (int)crop_left.Value - (int)crop_right.Value;\r
+ width = (int) text_width.Value;\r
width = GetModulusValue(width); /* Time to get picture width that divide cleanly.*/\r
\r
height = (width / storage_aspect) + 0.5;\r