this.MaxHeight = preset.Task.MaxHeight ?? this.sourceResolution.Height;\r
}\r
\r
- // Update the cropping values, preffering those in the presets.\r
- if (!preset.Task.HasCropping)\r
- {\r
- this.CropTop = title.AutoCropDimensions.Top;\r
- this.CropBottom = title.AutoCropDimensions.Bottom;\r
- this.CropLeft = title.AutoCropDimensions.Left;\r
- this.CropRight = title.AutoCropDimensions.Right;\r
- this.IsCustomCrop = false;\r
- }\r
- else\r
- {\r
- this.CropLeft = preset.Task.Cropping.Left;\r
- this.CropRight = preset.Task.Cropping.Right;\r
- this.CropTop = preset.Task.Cropping.Top;\r
- this.CropBottom = preset.Task.Cropping.Bottom;\r
- this.IsCustomCrop = true;\r
- }\r
-\r
// Set the Width, and Maintain Aspect ratio. That should calc the Height for us.\r
this.Width = preset.Task.Width ?? this.MaxWidth; // Note: This will be auto-corrected in the property if it's too large.\r
\r
}\r
}\r
\r
+ // Update the cropping values, preffering those in the presets.\r
+ if (!preset.Task.HasCropping)\r
+ {\r
+ this.CropTop = title.AutoCropDimensions.Top;\r
+ this.CropBottom = title.AutoCropDimensions.Bottom;\r
+ this.CropLeft = title.AutoCropDimensions.Left;\r
+ this.CropRight = title.AutoCropDimensions.Right;\r
+ this.IsCustomCrop = false;\r
+ }\r
+ else\r
+ {\r
+ this.CropLeft = preset.Task.Cropping.Left;\r
+ this.CropRight = preset.Task.Cropping.Right;\r
+ this.CropTop = preset.Task.Cropping.Top;\r
+ this.CropBottom = preset.Task.Cropping.Bottom;\r
+ this.IsCustomCrop = true;\r
+ }\r
+\r
// Set Screen Controls\r
this.SourceInfo = string.Format(\r
"{0}x{1}, Aspect Ratio: {2:0.00}",\r