public void SetDimension(float ratio)
{
int ww = ((int)(322 * 100 * ratio)) / 100;
int oh = 242;
//if (this.Camera != null && this.Camera.Banner == true)
//{
//oh += 25;
//}
int wh = ((int)(oh * 100 * ratio)) / 100;
this.Width = ww;
this.cameraWindow.Height = wh;
if (!this.HeightFixed)
{
int h;
if (this.panelCameraViewEdit.Visible)
{
h = wh + this.toolStripRegion.Height + this.panelTrackBars.Height;
}
else
{
h = wh;
}
this.Height = h + toolStripMain.Height + cwStatusStrip.Height + panelMaster.CaptionHeight;
}
}