步进电机 挡料地
This commit is contained in:
@ -49,6 +49,7 @@ namespace DH.Commons.Base
|
||||
private bool _isallPicEnabled = true;//默认全画幅
|
||||
private bool _isContinueMode = false;
|
||||
private bool _isSavePicEnabled = false;
|
||||
private bool _isZoomCamera = false;
|
||||
private string _imageSaveDirectory;
|
||||
private EnumCamType _CamType;
|
||||
private ImageFormat _imageFormat = ImageFormat.Jpeg;
|
||||
@ -59,7 +60,7 @@ namespace DH.Commons.Base
|
||||
private string _computerIP = string.Empty;
|
||||
private bool _isDirectHardwareTrigger = false;
|
||||
private float _gain =6;
|
||||
private float _rotateImage = 0;
|
||||
private int _rotateImage = 0;
|
||||
private float _exposure = 200;
|
||||
private float _triggerDelay = 0;
|
||||
private decimal _roiX = 0;
|
||||
@ -83,6 +84,16 @@ namespace DH.Commons.Base
|
||||
OnPropertyChanged(nameof(IsContinueMode));
|
||||
}
|
||||
}
|
||||
public bool IsZoomCamera
|
||||
{
|
||||
get => _isZoomCamera;
|
||||
set
|
||||
{
|
||||
if (_isZoomCamera == value) return;
|
||||
_isZoomCamera = value;
|
||||
OnPropertyChanged(nameof(IsZoomCamera));
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool IsEnabled
|
||||
{
|
||||
@ -245,7 +256,7 @@ namespace DH.Commons.Base
|
||||
[Category("图像旋转")]
|
||||
[DisplayName("默认旋转")]
|
||||
[Description("默认旋转,相机开启后默认不旋转")]
|
||||
public virtual float RotateImage
|
||||
public virtual int RotateImage
|
||||
{
|
||||
get => _rotateImage;
|
||||
set
|
||||
|
@ -16,6 +16,8 @@ namespace DH.Commons.Base
|
||||
public string Direction { get; set; }
|
||||
public string Speed { get; set; }
|
||||
|
||||
public string MSpeed { get; set; }
|
||||
|
||||
// 配置文件路径
|
||||
private const string ConfigFile = "VisualConfigs.json";
|
||||
private static readonly object _fileLock = new object();
|
||||
@ -38,6 +40,7 @@ namespace DH.Commons.Base
|
||||
existing.Threshold = Threshold;
|
||||
existing.Direction = Direction;
|
||||
existing.Speed = Speed;
|
||||
existing.MSpeed = MSpeed;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user