mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
AnnotateImage config related changes
This commit is contained in:
parent
c26ea73efc
commit
8c5a07f4a8
|
@ -150,7 +150,7 @@ public static void ShowScreenRuler(RegionCaptureOptions options)
|
|||
}
|
||||
}
|
||||
|
||||
public static void EditImage(string filePath, RegionCaptureOptions options)
|
||||
public static void AnnotateImage(string filePath, RegionCaptureOptions options)
|
||||
{
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
|
@ -158,7 +158,9 @@ public static void EditImage(string filePath, RegionCaptureOptions options)
|
|||
using (RectangleRegionForm form = new RectangleRegionForm(RegionCaptureMode.Editor))
|
||||
{
|
||||
form.Config = GetRegionCaptureOptions(options);
|
||||
form.Config.DetectWindows = false;
|
||||
form.Config.ShowTips = false;
|
||||
form.Config.UseDimming = false;
|
||||
|
||||
form.Prepare(img);
|
||||
form.ShowDialog();
|
||||
|
@ -216,7 +218,9 @@ private static RegionCaptureOptions GetRegionCaptureOptions(RegionCaptureOptions
|
|||
UseSquareMagnifier = options.UseSquareMagnifier,
|
||||
MagnifierPixelCount = options.MagnifierPixelCount,
|
||||
MagnifierPixelSize = options.MagnifierPixelSize,
|
||||
ShowCrosshair = options.ShowCrosshair
|
||||
ShowCrosshair = options.ShowCrosshair,
|
||||
AnnotationOptions = options.AnnotationOptions,
|
||||
ShowMenuTip = options.ShowMenuTip
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -606,7 +606,7 @@ public static void OpenImageEditor(string filePath = null, TaskSettings taskSett
|
|||
|
||||
if (!string.IsNullOrEmpty(filePath))
|
||||
{
|
||||
RegionCaptureHelpers.EditImage(filePath, taskSettings.CaptureSettings.SurfaceOptions);
|
||||
RegionCaptureHelpers.AnnotateImage(filePath, taskSettings.CaptureSettingsReference.SurfaceOptions);
|
||||
//AnnotateImage(filePath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue