2 using System.Drawing;
\r
3 using System.Windows.Forms;
\r
4 using Handbrake.Parsing;
\r
6 namespace Handbrake.Controls
\r
9 // - Tie in the cropping controls.
\r
11 public partial class PictureSettings : UserControl
\r
14 public int maxWidth, maxHeight;
\r
15 int widthVal, heightVal;
\r
16 private double darValue;
\r
17 private double storageAspect; // Storage Aspect Cache for current source and title
\r
18 public Title selectedTitle { private get; set; }
\r
19 private Boolean heightChangeGuard;
\r
20 private Boolean looseAnamorphicHeightGuard;
\r
21 private Boolean heightModJumpGaurd;
\r
24 public PictureSettings()
\r
26 InitializeComponent();
\r
28 drop_modulus.SelectedIndex = 0;
\r
31 public void setComponentsAfterScan(Title st)
\r
35 // Set the Aspect Ratio
\r
36 lbl_Aspect.Text = selectedTitle.AspectRatio.ToString();
\r
37 lbl_src_res.Text = selectedTitle.Resolution.Width + " x " + selectedTitle.Resolution.Height;
\r
39 // Set the Recommended Cropping values
\r
40 crop_top.Text = selectedTitle.AutoCropDimensions[0].ToString();
\r
41 crop_bottom.Text = selectedTitle.AutoCropDimensions[1].ToString();
\r
42 crop_left.Text = selectedTitle.AutoCropDimensions[2].ToString();
\r
43 crop_right.Text = selectedTitle.AutoCropDimensions[3].ToString();
\r
46 // Set the Resolution Boxes
\r
47 text_width.Value = selectedTitle.Resolution.Width;
\r
49 if (drp_anamorphic.SelectedIndex == 0)
\r
50 text_height.Value = cacluateHeight(selectedTitle.Resolution.Width);
\r
51 else if (drp_anamorphic.SelectedIndex == 1 || drp_anamorphic.SelectedIndex == 3)
\r
53 heightModJumpGaurd = true;
\r
54 text_height.Value = selectedTitle.Resolution.Height - (int) crop_top.Value - (int) crop_bottom.Value;
\r
56 else if (drp_anamorphic.SelectedIndex == 2)
\r
58 heightModJumpGaurd = false;
\r
59 text_height.Value = selectedTitle.Resolution.Height - (int)crop_top.Value - (int)crop_bottom.Value;
\r
62 if (drp_anamorphic.SelectedIndex == 3)
\r
64 txt_parWidth.Text = selectedTitle.ParVal.Width.ToString();
\r
65 txt_parHeight.Text = selectedTitle.ParVal.Height.ToString();
\r
66 txt_displayWidth.Text = displayWidth().ToString();
\r
71 public void setMax()
\r
73 if (maxWidth != 0 && maxHeight != 0)
\r
74 lbl_max.Text = "Max Width / Height";
\r
75 else if (maxWidth != 0)
\r
76 lbl_max.Text = "Max Width";
\r
81 // Basic Picture Setting Controls
\r
82 private void text_width_ValueChanged(object sender, EventArgs e)
\r
89 int.TryParse(drop_modulus.SelectedItem.ToString(), out mod);
\r
91 // Increase or decrease value by the correct mod.
\r
92 text_width.Value = widthChangeMod(mod);
\r
95 switch (drp_anamorphic.SelectedIndex)
\r
98 if (calculateUnchangeValue(true) != -1 && check_KeepAR.Checked)
\r
99 text_height.Value = calculateUnchangeValue(true);
\r
102 lbl_anamorphic.Text = strictAnamorphic();
\r
105 lbl_anamorphic.Text = looseAnamorphic();
\r
108 customAnamorphic(text_width);
\r
113 private void text_height_ValueChanged(object sender, EventArgs e)
\r
120 int.TryParse(drop_modulus.SelectedItem.ToString(), out mod);
\r
122 // Increase or decrease value by the correct mod.
\r
123 if (drp_anamorphic.SelectedIndex != 2 && !heightModJumpGaurd)
\r
125 decimal val = heightChangeMod(mod);
\r
126 heightChangeGuard = true;
\r
127 if (text_height.Value != val)
\r
129 heightChangeGuard = false;
\r
130 text_height.Value = val;
\r
135 switch (drp_anamorphic.SelectedIndex)
\r
138 if (drp_anamorphic.SelectedIndex != 3)
\r
140 if (calculateUnchangeValue(false) != -1)
\r
141 text_width.Value = calculateUnchangeValue(false);
\r
145 lbl_anamorphic.Text = strictAnamorphic();
\r
148 if (!looseAnamorphicHeightGuard)
\r
149 lbl_anamorphic.Text = looseAnamorphic();
\r
152 if (!heightChangeGuard)
\r
153 customAnamorphic(text_height);
\r
156 heightChangeGuard = false;
\r
157 looseAnamorphicHeightGuard = false;
\r
158 heightModJumpGaurd = false;
\r
160 private void check_KeepAR_CheckedChanged(object sender, EventArgs e)
\r
162 // Recalculate Height based on width when enabled
\r
163 if (drp_anamorphic.SelectedIndex != 3 && check_KeepAR.Checked && selectedTitle != null)
\r
164 text_height.Value = cacluateHeight(widthVal);
\r
166 // Enable Par Width/Height Check boxes if Keep AR is enabled, otherwise disable them
\r
167 if (check_KeepAR.Checked)
\r
169 txt_parWidth.Enabled = false;
\r
170 txt_parHeight.Enabled = false;
\r
174 txt_parWidth.Enabled = true;
\r
175 txt_parHeight.Enabled = true;
\r
178 private void drp_anamorphic_SelectedIndexChanged(object sender, EventArgs e)
\r
180 switch (drp_anamorphic.SelectedIndex)
\r
183 text_height.Enabled = true;
\r
184 text_width.Enabled = true;
\r
185 check_KeepAR.CheckState = CheckState.Checked;
\r
186 check_KeepAR.Enabled = true;
\r
187 disableCustomAnaControls();
\r
188 if (selectedTitle != null)
\r
190 text_width.Value = selectedTitle.Resolution.Width;
\r
191 text_height.Value = selectedTitle.Resolution.Height;
\r
193 check_KeepAR.Enabled = true;
\r
194 lbl_anamorphic.Text = "";
\r
195 lbl_anamprohicLbl.Visible = false;
\r
198 if (selectedTitle != null)
\r
200 heightModJumpGaurd = true;
\r
201 text_width.Value = selectedTitle.Resolution.Width - (int)crop_left.Value - (int)crop_right.Value;
\r
202 text_height.Value = selectedTitle.Resolution.Height - (int)crop_top.Value - (int)crop_bottom.Value;
\r
204 text_height.Enabled = false;
\r
205 text_width.Enabled = false;
\r
206 check_KeepAR.CheckState = CheckState.Unchecked;
\r
207 check_KeepAR.Enabled = false;
\r
208 disableCustomAnaControls();
\r
209 lbl_anamorphic.Text = strictAnamorphic();
\r
210 lbl_anamprohicLbl.Visible = true;
\r
213 disableCustomAnaControls();
\r
215 text_height.Enabled = false;
\r
216 text_width.Enabled = true;
\r
217 if (selectedTitle != null)
\r
219 heightModJumpGaurd = true;
\r
220 text_width.Value = selectedTitle.Resolution.Width;
\r
221 text_height.Value = selectedTitle.Resolution.Height - (int) crop_top.Value - (int) crop_bottom.Value;
\r
223 lbl_anamorphic.Text = looseAnamorphic();
\r
224 lbl_anamprohicLbl.Visible = true;
\r
228 // Display Elements
\r
229 enableCustomAnaControls();
\r
230 text_height.Enabled = true;
\r
231 text_width.Enabled = true;
\r
234 if (selectedTitle != null)
\r
236 heightModJumpGaurd = true;
\r
237 widthVal = selectedTitle.Resolution.Width;
\r
238 text_width.Value = selectedTitle.Resolution.Width - (int)crop_left.Value - (int)crop_right.Value;
\r
239 text_height.Value = selectedTitle.Resolution.Height - (int)crop_top.Value - (int)crop_bottom.Value;
\r
240 txt_parWidth.Text = selectedTitle.ParVal.Width.ToString();
\r
241 txt_parHeight.Text = selectedTitle.ParVal.Height.ToString();
\r
242 txt_displayWidth.Text = displayWidth().ToString();
\r
245 darValue = calculateDar();
\r
247 check_KeepAR.CheckState = CheckState.Checked;
\r
248 check_KeepAR.Enabled = true;
\r
249 lbl_anamprohicLbl.Visible = true;
\r
255 // Custom Anamorphic Controls
\r
256 private void txt_displayWidth_Keyup(object sender, KeyEventArgs e)
\r
258 if (e.KeyCode == Keys.Enter)
\r
259 customAnamorphic(txt_displayWidth);
\r
261 private void txt_parHeight_Keyup(object sender, KeyEventArgs e)
\r
263 if (e.KeyCode == Keys.Enter)
\r
264 customAnamorphic(txt_parHeight);
\r
266 private void txt_parWidth_Keyup(object sender, KeyEventArgs e)
\r
268 if (e.KeyCode == Keys.Enter)
\r
269 customAnamorphic(txt_parWidth);
\r
272 // Cropping Controls
\r
273 private void check_autoCrop_CheckedChanged(object sender, EventArgs e)
\r
275 crop_left.Enabled = false;
\r
276 crop_right.Enabled = false;
\r
277 crop_top.Enabled = false;
\r
278 crop_bottom.Enabled = false;
\r
280 private void check_customCrop_CheckedChanged(object sender, EventArgs e)
\r
282 crop_left.Enabled = true;
\r
283 crop_right.Enabled = true;
\r
284 crop_top.Enabled = true;
\r
285 crop_bottom.Enabled = true;
\r
286 if (selectedTitle != null)
\r
288 crop_top.Text = selectedTitle.AutoCropDimensions[0].ToString();
\r
289 crop_bottom.Text = selectedTitle.AutoCropDimensions[1].ToString();
\r
290 crop_left.Text = selectedTitle.AutoCropDimensions[2].ToString();
\r
291 crop_right.Text = selectedTitle.AutoCropDimensions[3].ToString();
\r
295 crop_left.Text = "0";
\r
296 crop_right.Text = "0";
\r
297 crop_top.Text = "0";
\r
298 crop_bottom.Text = "0";
\r
301 private void crop_left_ValueChanged(object sender, EventArgs e)
\r
303 if (crop_left.Value % 2 != 0)
\r
306 private void crop_right_ValueChanged(object sender, EventArgs e)
\r
308 if (crop_right.Value % 2 != 0)
\r
309 crop_right.Value++;
\r
311 private void crop_top_ValueChanged(object sender, EventArgs e)
\r
313 if (crop_top.Value % 2 != 0)
\r
316 private void crop_bottom_ValueChanged(object sender, EventArgs e)
\r
318 if (crop_bottom.Value % 2 != 0)
\r
319 crop_bottom.Value++;
\r
322 // Custom Anamorphic Code
\r
323 private void customAnamorphic(Control control)
\r
325 // Get and parse all the required values
\r
326 int cropLeft = (int)crop_left.Value;
\r
327 int cropRight = (int)crop_right.Value;
\r
329 int width = (int)text_width.Value;
\r
330 int cropped_width = width - cropLeft - cropRight;
\r
333 int.TryParse(drop_modulus.SelectedItem.ToString(), out mod);
\r
336 double displayWidth;
\r
337 int.TryParse(txt_parWidth.Text, out parW);
\r
338 int.TryParse(txt_parHeight.Text, out parH);
\r
339 double.TryParse(txt_displayWidth.Text, out displayWidth);
\r
341 /* NOT KEEPING DISPLAY ASPECT
\r
342 * Changing STORAGE WIDTH changes DISPLAY WIDTH to STORAGE WIDTH * PIXEL WIDTH / PIXEL HEIGHT
\r
343 * Changing PIXEL dimensions changes DISPLAY WIDTH to STORAGE WIDTH * PIXEL WIDTH / PIXEL HEIGHT
\r
344 * Changing DISPLAY WIDTH changes PIXEL WIDTH to DISPLAY WIDTH and PIXEL HEIGHT to STORAGE WIDTH
\r
345 * Changing HEIGHT just....changes the height.
\r
347 if (!check_KeepAR.Checked)
\r
349 switch (control.Name)
\r
352 double dw = (double)cropped_width * parW / parH;
\r
353 dw = Math.Round(dw, 2);
\r
354 txt_displayWidth.Text = dw.ToString();
\r
356 case "txt_parWidth":
\r
357 double dwpw = (double)cropped_width * parW / parH;
\r
358 dwpw = Math.Round(dwpw, 2);
\r
359 txt_displayWidth.Text = dwpw.ToString();
\r
361 case "txt_parHeight":
\r
362 double dwph = (double)cropped_width * parW / parH;
\r
363 dwph = Math.Round(dwph, 2);
\r
364 txt_displayWidth.Text = dwph.ToString();
\r
366 case "txt_displayWidth":
\r
367 txt_parWidth.Text = Math.Round(displayWidth, 0).ToString();
\r
368 txt_parHeight.Text = text_width.Text;
\r
374 * KEEPING DISPLAY ASPECT RATIO
\r
375 * DAR = DISPLAY WIDTH / DISPLAY HEIGHT (cache after every modification)
\r
376 * Disable editing: PIXEL WIDTH, PIXEL HEIGHT
\r
377 * Changing DISPLAY WIDTH:
\r
378 * Changes HEIGHT to keep DAR
\r
379 * Changes PIXEL WIDTH to new DISPLAY WIDTH
\r
380 * Changes PIXEL HEIGHT to STORAGE WIDTH
\r
382 * Changes DISPLAY WIDTH to keep DAR
\r
383 * Changes PIXEL WIDTH to new DISPLAY WIDTH
\r
384 * Changes PIXEL HEIGHT to STORAGE WIDTH
\r
385 * Changing STORAGE_WIDTH:
\r
386 * Changes PIXEL WIDTH to DISPLAY WIDTH
\r
387 * Changes PIXEL HEIGHT to new STORAGE WIDTH
\r
390 if (check_KeepAR.Checked)
\r
392 switch (control.Name)
\r
394 case "txt_displayWidth":
\r
395 heightChangeGuard = true;
\r
396 text_height.Value = (decimal)getHeightKeepDar(); //Changes HEIGHT to keep DAR
\r
397 //darValue = calculateDar(); // Cache the dar value
\r
398 txt_parWidth.Text = txt_displayWidth.Text;
\r
399 txt_parHeight.Text = cropped_width.ToString();
\r
401 case "text_height":
\r
402 heightChangeGuard = true;
\r
403 txt_displayWidth.Text = getDisplayWidthKeepDar().ToString(); //Changes DISPLAY WIDTH to keep DAR
\r
404 txt_parWidth.Text = txt_displayWidth.Text;
\r
405 txt_parHeight.Text = cropped_width.ToString();
\r
408 txt_parWidth.Text = txt_displayWidth.Text;
\r
409 txt_parHeight.Text = cropped_width.ToString();
\r
414 private double getDisplayWidthKeepDar()
\r
416 double displayWidth;
\r
417 double.TryParse(txt_displayWidth.Text, out displayWidth);
\r
418 double currentDar = calculateDar();
\r
419 double newDwValue = displayWidth;
\r
421 // Correct display width up or down to correct for dar.
\r
422 if (currentDar > darValue)
\r
424 while (currentDar > darValue)
\r
427 newDwValue = displayWidth;
\r
428 currentDar = calculateDarByVal(text_height.Value, displayWidth);
\r
433 while (currentDar < darValue)
\r
436 newDwValue = displayWidth;
\r
437 currentDar = calculateDarByVal(text_height.Value, displayWidth);
\r
441 return Math.Round(newDwValue, 2);
\r
443 private double getHeightKeepDar()
\r
445 double displayWidth;
\r
446 double.TryParse(txt_displayWidth.Text, out displayWidth);
\r
447 double currentDar = calculateDar();
\r
448 double newHeightVal = heightVal;
\r
450 // Correct display width up or down.
\r
451 if (currentDar > darValue)
\r
453 while (currentDar > darValue)
\r
456 newHeightVal = heightVal;
\r
457 currentDar = calculateDarByVal(heightVal, displayWidth);
\r
462 while (currentDar < darValue)
\r
465 newHeightVal = heightVal;
\r
466 currentDar = calculateDarByVal(heightVal, displayWidth);
\r
470 return newHeightVal;
\r
472 private double calculateDar()
\r
474 // DAR = DISPLAY WIDTH / DISPLAY HEIGHT (cache after every modification)
\r
475 double displayWidth;
\r
476 double.TryParse(txt_displayWidth.Text, out displayWidth);
\r
478 double calculatedDar = displayWidth / (int)text_height.Value;
\r
480 return calculatedDar;
\r
482 private double calculateDarByVal(decimal croppedHeight, double displayWidth)
\r
484 // DAR = DISPLAY WIDTH / DISPLAY HEIGHT (cache after every modification)
\r
485 double calculatedDar = darValue;
\r
486 if (croppedHeight > 0)
\r
487 calculatedDar = displayWidth / (double)croppedHeight;
\r
489 return calculatedDar;
\r
491 private int displayWidth()
\r
493 if (selectedTitle != null)
\r
495 int actualWidth = (int)text_width.Value;
\r
496 int displayWidth = 0;
\r
499 int.TryParse(txt_parWidth.Text, out parW);
\r
500 int.TryParse(txt_parHeight.Text, out parH);
\r
502 if (drp_anamorphic.SelectedIndex != 3)
\r
503 displayWidth = (actualWidth * selectedTitle.ParVal.Width / selectedTitle.ParVal.Height);
\r
504 else if (parW > 0 && parH > 0)
\r
505 displayWidth = (actualWidth * parW / parH);
\r
507 return displayWidth;
\r
512 // Resolution calculation and controls
\r
513 private decimal widthChangeMod(int mod)
\r
515 // Increase or decrease the height based on the users input.
\r
516 decimal returnVal = text_width.Value > widthVal ? getResolutionJump(mod, text_width.Value, true) : getResolutionJump(mod, text_width.Value, false);
\r
518 // Make sure we don't go above source value
\r
519 if (selectedTitle != null)
\r
520 if (selectedTitle.Resolution.Width < returnVal)
\r
521 returnVal = selectedTitle.Resolution.Width;
\r
523 // Set the global tracker
\r
524 widthVal = (int)returnVal;
\r
528 private decimal heightChangeMod(int mod)
\r
530 // Increase or decrease the height based on the users input.
\r
531 decimal returnVal = text_height.Value > heightVal ? getResolutionJump(mod, text_height.Value, true) : getResolutionJump(mod, text_height.Value, false);
\r
533 // Make sure we don't go above source value
\r
534 if (selectedTitle != null)
\r
535 if (selectedTitle.Resolution.Height < returnVal)
\r
536 returnVal = selectedTitle.Resolution.Height;
\r
538 // Set the global tracker
\r
539 heightVal = (int)returnVal; // TODO THIS IS CAUSING PROBLEM
\r
543 private decimal calculateUnchangeValue(Boolean widthChangeFromControl)
\r
545 decimal newValue = -1;
\r
546 if (selectedTitle != null && drp_anamorphic.SelectedIndex != 3 && drp_anamorphic.SelectedIndex != 2)
\r
547 if (widthChangeFromControl)
\r
548 newValue = cacluateHeight(widthVal);
\r
551 if (check_KeepAR.Checked)
\r
552 newValue = cacluateWidth(heightVal);
\r
557 private int getResolutionJump(int mod, decimal value, Boolean up)
\r
560 while ((value % mod) != 0)
\r
563 while ((value % mod) != 0)
\r
568 private double getModulusAuto(int mod, double value)
\r
570 int modDiv2 = mod / 2;
\r
572 if ((value % mod) != 0)
\r
574 double modVal = (int)value % mod;
\r
575 if (modVal >= modDiv2)
\r
577 modVal = 16 - modVal;
\r
578 value = (int)value + (int)modVal;
\r
582 value = (int)value - (int)modVal;
\r
587 private int cacluateHeight(int width)
\r
589 if (selectedTitle != null)
\r
593 if (selectedTitle.AspectRatio.ToString() == "1.78")
\r
598 else if (selectedTitle.AspectRatio.ToString() == "1.33")
\r
606 // Crop_Width = Title->Width - crop_Left - crop_right
\r
607 // Crop_Height = Title->Height - crop_top - crop_bottom
\r
608 double crop_width = selectedTitle.Resolution.Width - (double) crop_left.Value -
\r
609 (double) crop_right.Value;
\r
610 double crop_height = selectedTitle.Resolution.Height - (double) crop_top.Value -
\r
611 (double) crop_bottom.Value;
\r
613 double new_height = (width*selectedTitle.Resolution.Width*ah*crop_height)/
\r
614 (selectedTitle.Resolution.Height*aw*crop_width);
\r
616 if (drp_anamorphic.SelectedIndex == 3)
\r
617 new_height = getModulusAuto(int.Parse(drop_modulus.SelectedItem.ToString()), new_height);
\r
619 new_height = getModulusAuto(16, new_height);
\r
622 //double z = ( 16 * (( y + 8 ) / 16 ) );
\r
623 int x = int.Parse(new_height.ToString());
\r
631 private int cacluateWidth(int height)
\r
635 if (selectedTitle.AspectRatio.ToString() == "1.78")
\r
640 else if (selectedTitle.AspectRatio.ToString() == "1.33")
\r
649 double crop_width = selectedTitle.Resolution.Width - (double)crop_left.Value - (double)crop_right.Value;
\r
650 double crop_height = selectedTitle.Resolution.Height - (double)crop_top.Value - (double)crop_bottom.Value;
\r
652 double new_width = (height * selectedTitle.Resolution.Height * aw * crop_width) /
\r
653 (selectedTitle.Resolution.Width * ah * crop_height);
\r
655 if (drp_anamorphic.SelectedIndex == 3)
\r
656 new_width = getModulusAuto(int.Parse(drop_modulus.SelectedItem.ToString()), new_width);
\r
658 new_width = getModulusAuto(16, new_width);
\r
661 //double z = ( 16 * (( y + 8 ) / 16 ) );
\r
662 int x = int.Parse(new_width.ToString());
\r
668 // Calculate Resolution for Anamorphic functions
\r
669 private string strictAnamorphic()
\r
671 // TODO Make sure cropping is Mod2
\r
672 if (selectedTitle != null)
\r
674 // Calculate the Actual Height
\r
675 int actualWidth = (int)text_width.Value - (int)crop_left.Value - (int)crop_right.Value; ;
\r
676 int actualHeight = selectedTitle.Resolution.Height - (int)crop_top.Value - (int)crop_bottom.Value;
\r
678 // Calculate Actual Width
\r
679 double displayWidth = ((double)actualWidth * selectedTitle.ParVal.Width / selectedTitle.ParVal.Height);
\r
680 return Math.Round(displayWidth, 0) + "x" + actualHeight;
\r
682 return "Select a Title";
\r
684 private string looseAnamorphic()
\r
686 if (selectedTitle != null)
\r
689 int actualWidth = (int)text_width.Value - (int)crop_left.Value - (int)crop_right.Value;
\r
691 int source_display_width = selectedTitle.Resolution.Width * selectedTitle.ParVal.Width / selectedTitle.ParVal.Height;
\r
692 int source_cropped_height = selectedTitle.Resolution.Height - (int)crop_top.Value - (int)crop_bottom.Value;
\r
694 // Calculate storage Aspect and cache it for reuse
\r
695 if (storageAspect == 0)
\r
696 storageAspect = (double)actualWidth / source_cropped_height;
\r
698 // Calculate the new height based on the input cropped width
\r
699 double hcalc = (actualWidth / storageAspect) + 0.5;
\r
700 double newHeight = getModulusAuto(16, hcalc);
\r
701 looseAnamorphicHeightGuard = true;
\r
703 if (newHeight < 64)
\r
705 text_height.Value = (decimal)newHeight; // BUG Out of Range Exception with Width too low here.
\r
707 // Calculate the anamorphic width
\r
708 double parW = newHeight * source_display_width / source_cropped_height;
\r
709 double parH = actualWidth;
\r
710 double displayWidth = (actualWidth * parW / parH);
\r
712 // Now correct DisplayWidth to maintain Aspect ratio. ActualHeight was mod16'd and thus AR is slightly different than the worked out displayWidths
\r
713 return Math.Truncate(displayWidth) + "x" + newHeight;
\r
715 return "Select a Title";
\r
720 private void disableCustomAnaControls()
\r
722 // Disable Custom Anamorphic Stuff
\r
723 lbl_modulus.Visible = false;
\r
724 lbl_displayWidth.Visible = false;
\r
725 lbl_parWidth.Visible = false;
\r
726 lbl_parHeight.Visible = false;
\r
727 drop_modulus.Visible = false;
\r
728 txt_displayWidth.Visible = false;
\r
729 txt_parWidth.Visible = false;
\r
730 txt_parHeight.Visible = false;
\r
731 check_KeepAR.Enabled = false;
\r
733 private void enableCustomAnaControls()
\r
735 // Disable Custom Anamorphic Stuff
\r
736 lbl_modulus.Visible = true;
\r
737 lbl_displayWidth.Visible = true;
\r
738 lbl_parWidth.Visible = true;
\r
739 lbl_parHeight.Visible = true;
\r
740 drop_modulus.Visible = true;
\r
741 txt_displayWidth.Visible = true;
\r
742 txt_parWidth.Visible = true;
\r
743 txt_parHeight.Visible = true;
\r
744 check_KeepAR.Enabled = true;
\r