|
@@ -78,24 +78,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
set
|
|
set
|
|
{
|
|
{
|
|
SetProperty(ref _transpent, value);
|
|
SetProperty(ref _transpent, value);
|
|
- if (TextEditEvent != null && isCanSave)
|
|
|
|
- {
|
|
|
|
- if (IsMultiSelectImage)
|
|
|
|
- {
|
|
|
|
- foreach (var item in TextEditEventList)
|
|
|
|
- {
|
|
|
|
- item.Transparency = (int)(_transpent * 2.55);
|
|
|
|
- item.UpdatePDFEditByEventArgs();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- TextEditEvent.Transparency = (int)(_transpent * 2.55);
|
|
|
|
- TextEditEvent.UpdatePDFEditByEventArgs();
|
|
|
|
- OpacityUI = _transpent / 100.0;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
@@ -148,6 +131,9 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
//添加图片
|
|
//添加图片
|
|
public DelegateCommand AddImgCommand { get; set; }
|
|
public DelegateCommand AddImgCommand { get; set; }
|
|
|
|
|
|
|
|
+ //透明度条
|
|
|
|
+ public DelegateCommand TranspentslidCommand { get; set; }
|
|
|
|
+
|
|
public DelegateCommand EditImgModeCommand { get; set; }
|
|
public DelegateCommand EditImgModeCommand { get; set; }
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
@@ -166,7 +152,8 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
ExportImgCommand = new DelegateCommand(ExportImg);
|
|
ExportImgCommand = new DelegateCommand(ExportImg);
|
|
CropImgCommand = new DelegateCommand(CropImg);
|
|
CropImgCommand = new DelegateCommand(CropImg);
|
|
ImgAlignCheckedCommand = new DelegateCommand<object>(ImgAlignChecked);
|
|
ImgAlignCheckedCommand = new DelegateCommand<object>(ImgAlignChecked);
|
|
-
|
|
|
|
|
|
+ TranspentslidCommand = new DelegateCommand(Transpentslid);
|
|
|
|
+
|
|
AntiClockwiseCommand = new DelegateCommand(AntiClockwise);
|
|
AntiClockwiseCommand = new DelegateCommand(AntiClockwise);
|
|
ClockwiseCommand = new DelegateCommand(Clockwise);
|
|
ClockwiseCommand = new DelegateCommand(Clockwise);
|
|
FlipleftrightCommand = new DelegateCommand(Flipleftright);
|
|
FlipleftrightCommand = new DelegateCommand(Flipleftright);
|
|
@@ -178,6 +165,31 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
}
|
|
}
|
|
|
|
|
|
#region Command实现
|
|
#region Command实现
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ private void Transpentslid()
|
|
|
|
+ {
|
|
|
|
+ if (TextEditEvent != null && isCanSave)
|
|
|
|
+ {
|
|
|
|
+ if (IsMultiSelectImage)
|
|
|
|
+ {
|
|
|
|
+ foreach (var item in TextEditEventList)
|
|
|
|
+ {
|
|
|
|
+ item.Transparency = (int)(_transpent * 2.55);
|
|
|
|
+ item.UpdatePDFEditByEventArgs();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ TextEditEvent.Transparency = (int)(_transpent * 2.55);
|
|
|
|
+ TextEditEvent.UpdatePDFEditByEventArgs();
|
|
|
|
+ OpacityUI = _transpent / 100.0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
private void EditImgMode()
|
|
private void EditImgMode()
|
|
{
|
|
{
|
|
|
|
|