private void widthUpDown_ValueChanged( object sender, EventArgs e )
{
if ( videoSource != null )
{
try
{
videoSource.SetParam( CameraParameter.Width, (int) widthUpDown.Value );
offsetXUpDown.Maximum = widthUpDown.Maximum - widthUpDown.Value;
offsetXUpDown.Value = 0;
}
catch
{
}
}
}