/// <summary> /// The crop adjust. /// </summary> private void CropAdjust() { PictureSize.AnamorphicResult result = PictureSize.hb_set_anamorphic_size(this.GetPictureSettings(), this.GetPictureTitleInfo()); switch (this.SelectedAnamorphicMode) { case Anamorphic.None: // this.Width = result.OutputWidth; // this.Height = result.OutputHeight; break; case Anamorphic.Strict: case Anamorphic.Loose: case Anamorphic.Custom: double dispWidth = Math.Round((result.OutputWidth * result.OutputParWidth / result.OutputParHeight), 0); this.DisplaySize = this.sourceResolution.IsEmpty ? string.Empty : string.Format("Storage: {0}x{1}, Display: {2}x{3}", result.OutputWidth, result.OutputHeight, dispWidth, result.OutputHeight); break; } }
/// <summary> /// Set the display size text /// </summary> private void SetDisplaySize() { /* * Handle Anamorphic Display */ if (this.SelectedAnamorphicMode != Anamorphic.None) { PictureSize.AnamorphicResult result = PictureSize.hb_set_anamorphic_size(this.GetPictureSettings(), this.GetPictureTitleInfo()); double dispWidth = Math.Round((result.OutputWidth * result.OutputParWidth / result.OutputParHeight), 0); this.DisplaySize = this.sourceResolution.IsEmpty ? string.Format(Properties.Resources.PictureSettings_OutputResolution, "None") : string.Format("Output: {0}x{1}, Anamorphic: {2}x{3}", result.OutputWidth, result.OutputHeight, dispWidth, result.OutputHeight); } else { this.DisplaySize = this.sourceResolution.IsEmpty ? string.Empty : string.Format("Output: {0}x{1}", this.Width, this.Height); } }