Rename RegionCaptureHelpers to RegionCaptureTasks
This commit is contained in:
parent
68d0ad1413
commit
5fdf8547f2
@ -1098,7 +1098,7 @@ namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
using (Image img = GetOutputImage())
|
||||
{
|
||||
return RegionCaptureHelpers.ApplyRegionPathToImage(img, regionFillPath);
|
||||
return RegionCaptureTasks.ApplyRegionPathToImage(img, regionFillPath);
|
||||
}
|
||||
}
|
||||
else if (Result == RegionResult.Fullscreen)
|
||||
|
@ -126,7 +126,7 @@ namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
Thread.Sleep(250);
|
||||
|
||||
SimpleWindowInfo simpleWindowInfo = RegionCaptureHelpers.GetWindowInfo(RegionCaptureOptions);
|
||||
SimpleWindowInfo simpleWindowInfo = RegionCaptureTasks.GetWindowInfo(RegionCaptureOptions);
|
||||
|
||||
if (simpleWindowInfo != null)
|
||||
{
|
||||
@ -163,7 +163,7 @@ namespace ShareX.ScreenCaptureLib
|
||||
|
||||
Rectangle rect;
|
||||
|
||||
if (RegionCaptureHelpers.GetRectangleRegion(out rect, RegionCaptureOptions))
|
||||
if (RegionCaptureTasks.GetRectangleRegion(out rect, RegionCaptureOptions))
|
||||
{
|
||||
selectedRectangle = rect;
|
||||
lblSelectedRectangle.Text = selectedRectangle.ToString();
|
||||
|
@ -31,7 +31,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
public static class RegionCaptureHelpers
|
||||
public static class RegionCaptureTasks
|
||||
{
|
||||
public static Image GetRegionImage(RegionCaptureOptions options)
|
||||
{
|
@ -137,7 +137,7 @@
|
||||
<Compile Include="RegionHelpers\InputManager.cs" />
|
||||
<Compile Include="RegionHelpers\MouseState.cs" />
|
||||
<Compile Include="RegionHelpers\ResizeNode.cs" />
|
||||
<Compile Include="RegionCaptureHelpers.cs" />
|
||||
<Compile Include="RegionCaptureTasks.cs" />
|
||||
<Compile Include="ScrollingCaptureOptions.cs" />
|
||||
<Compile Include="Shapes\Region\RoundedRectangleRegionShape.cs" />
|
||||
<Compile Include="RegionHelpers\SimpleWindowInfo.cs" />
|
||||
|
@ -127,7 +127,7 @@ namespace ShareX
|
||||
{
|
||||
Rectangle rect;
|
||||
|
||||
if (RegionCaptureHelpers.GetRectangleRegion(out rect, taskSettings.CaptureSettings.SurfaceOptions))
|
||||
if (RegionCaptureTasks.GetRectangleRegion(out rect, taskSettings.CaptureSettings.SurfaceOptions))
|
||||
{
|
||||
Program.Settings.AutoCaptureRegion = rect;
|
||||
UpdateRegion();
|
||||
|
@ -2260,7 +2260,7 @@ namespace ShareX
|
||||
{
|
||||
using (Image screenshot = TaskHelpers.GetScreenshot(taskSettings).CaptureFullscreen())
|
||||
{
|
||||
return RegionCaptureHelpers.ApplyRegionPathToImage(screenshot, RegionCaptureForm.LastRegionFillPath);
|
||||
return RegionCaptureTasks.ApplyRegionPathToImage(screenshot, RegionCaptureForm.LastRegionFillPath);
|
||||
}
|
||||
}, CaptureType.LastRegion, taskSettings, autoHideForm);
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ namespace ShareX
|
||||
Thread.Sleep(250);
|
||||
|
||||
TaskSettings taskSettings = TaskSettings.GetDefaultTaskSettings();
|
||||
PointInfo pointInfo = RegionCaptureHelpers.GetPointInfo(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
PointInfo pointInfo = RegionCaptureTasks.GetPointInfo(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
|
||||
if (pointInfo != null)
|
||||
{
|
||||
|
@ -846,7 +846,7 @@ namespace ShareX
|
||||
{
|
||||
Rectangle rect;
|
||||
|
||||
if (RegionCaptureHelpers.GetRectangleRegion(out rect, TaskSettings.CaptureSettings.SurfaceOptions))
|
||||
if (RegionCaptureTasks.GetRectangleRegion(out rect, TaskSettings.CaptureSettings.SurfaceOptions))
|
||||
{
|
||||
nudCaptureCustomRegionX.SetValue(rect.X);
|
||||
nudCaptureCustomRegionY.SetValue(rect.Y);
|
||||
|
@ -134,7 +134,7 @@ namespace ShareX
|
||||
switch (startMethod)
|
||||
{
|
||||
case ScreenRecordStartMethod.Region:
|
||||
RegionCaptureHelpers.GetRectangleRegion(out captureRectangle, taskSettings.CaptureSettings.SurfaceOptions);
|
||||
RegionCaptureTasks.GetRectangleRegion(out captureRectangle, taskSettings.CaptureSettings.SurfaceOptions);
|
||||
break;
|
||||
case ScreenRecordStartMethod.ActiveWindow:
|
||||
if (taskSettings.CaptureSettings.CaptureClientArea)
|
||||
|
@ -484,7 +484,7 @@ namespace ShareX
|
||||
{
|
||||
if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings();
|
||||
|
||||
PointInfo pointInfo = RegionCaptureHelpers.GetPointInfo(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
PointInfo pointInfo = RegionCaptureTasks.GetPointInfo(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
|
||||
if (pointInfo != null)
|
||||
{
|
||||
@ -606,7 +606,7 @@ namespace ShareX
|
||||
|
||||
if (!string.IsNullOrEmpty(filePath))
|
||||
{
|
||||
Image img = RegionCaptureHelpers.AnnotateImage(filePath, taskSettings.CaptureSettingsReference.SurfaceOptions);
|
||||
Image img = RegionCaptureTasks.AnnotateImage(filePath, taskSettings.CaptureSettingsReference.SurfaceOptions);
|
||||
|
||||
if (img != null)
|
||||
{
|
||||
@ -671,14 +671,14 @@ namespace ShareX
|
||||
{
|
||||
if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings();
|
||||
|
||||
RegionCaptureHelpers.ShowScreenRuler(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
RegionCaptureTasks.ShowScreenRuler(taskSettings.CaptureSettings.SurfaceOptions);
|
||||
}
|
||||
|
||||
public static void OpenOCR(TaskSettings taskSettings = null)
|
||||
{
|
||||
if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings();
|
||||
|
||||
using (Image img = RegionCaptureHelpers.GetRegionImage(taskSettings.CaptureSettings.SurfaceOptions))
|
||||
using (Image img = RegionCaptureTasks.GetRegionImage(taskSettings.CaptureSettings.SurfaceOptions))
|
||||
{
|
||||
if (img != null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user