Added pin to screen options window

This commit is contained in:
Jaex 2023-10-07 08:32:40 +03:00
parent 67fdeca2f7
commit 6fd4db7e35
8 changed files with 545 additions and 5 deletions

View file

@ -211,6 +211,12 @@
<DependentUpon>ServiceLinksForm.cs</DependentUpon> <DependentUpon>ServiceLinksForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Tools\PinToScreen\PinToScreenOptions.cs" /> <Compile Include="Tools\PinToScreen\PinToScreenOptions.cs" />
<Compile Include="Tools\PinToScreen\PinToScreenOptionsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Tools\PinToScreen\PinToScreenOptionsForm.Designer.cs">
<DependentUpon>PinToScreenOptionsForm.cs</DependentUpon>
</Compile>
<Compile Include="Tools\PinToScreen\PinToScreenStartupForm.cs"> <Compile Include="Tools\PinToScreen\PinToScreenStartupForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1950,6 +1956,9 @@
<EmbeddedResource Include="Tools\OCR\ServiceLinksForm.zh-CN.resx"> <EmbeddedResource Include="Tools\OCR\ServiceLinksForm.zh-CN.resx">
<DependentUpon>ServiceLinksForm.cs</DependentUpon> <DependentUpon>ServiceLinksForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Tools\PinToScreen\PinToScreenOptionsForm.resx">
<DependentUpon>PinToScreenOptionsForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Tools\PinToScreen\PinToScreenStartupForm.he-IL.resx"> <EmbeddedResource Include="Tools\PinToScreen\PinToScreenStartupForm.he-IL.resx">
<DependentUpon>PinToScreenStartupForm.cs</DependentUpon> <DependentUpon>PinToScreenStartupForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View file

@ -1390,13 +1390,18 @@ public static void PinToScreen()
} }
} }
public static void PinToScreen(Image image, Point? location = null, PinToScreenOptions options = null) public static void PinToScreen(Image image, PinToScreenOptions options = null)
{
PinToScreen(image, null, options);
}
public static void PinToScreen(Image image, Point? location, PinToScreenOptions options = null)
{ {
if (image != null) if (image != null)
{ {
if (options == null) if (options == null)
{ {
options = new PinToScreenOptions(); options = Program.DefaultTaskSettings.ToolsSettings.PinToScreenOptions;
} }
options.BackgroundColor = ShareXResources.Theme.LightBackgroundColor; options.BackgroundColor = ShareXResources.Theme.LightBackgroundColor;

View file

@ -415,6 +415,7 @@ public class TaskSettingsTools
public string ScreenColorPickerFormat = "$hex"; public string ScreenColorPickerFormat = "$hex";
public string ScreenColorPickerFormatCtrl = "$r255, $g255, $b255"; public string ScreenColorPickerFormatCtrl = "$r255, $g255, $b255";
public string ScreenColorPickerInfoText = "RGB: $r255, $g255, $b255$nHex: $hex$nX: $x Y: $y"; public string ScreenColorPickerInfoText = "RGB: $r255, $g255, $b255$nHex: $hex$nX: $x Y: $y";
public PinToScreenOptions PinToScreenOptions = new PinToScreenOptions();
public IndexerSettings IndexerSettings = new IndexerSettings(); public IndexerSettings IndexerSettings = new IndexerSettings();
public ImageBeautifierOptions ImageBeautifierOptions = new ImageBeautifierOptions(); public ImageBeautifierOptions ImageBeautifierOptions = new ImageBeautifierOptions();
public ImageCombinerOptions ImageCombinerOptions = new ImageCombinerOptions(); public ImageCombinerOptions ImageCombinerOptions = new ImageCombinerOptions();

View file

@ -143,8 +143,6 @@ private PinToScreenForm(PinToScreenOptions options)
ImageOpacity = Options.InitialOpacity; ImageOpacity = Options.InitialOpacity;
InitializeComponent(); InitializeComponent();
// TODO: Add options form
tsbOptions.Visible = false;
ShareXResources.ApplyTheme(this, true); ShareXResources.ApplyTheme(this, true);
TopMost = Options.TopMost; TopMost = Options.TopMost;
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true);
@ -304,7 +302,20 @@ private void tslScale_Click(object sender, EventArgs e)
private void tsbOptions_Click(object sender, EventArgs e) private void tsbOptions_Click(object sender, EventArgs e)
{ {
tsMain.Visible = false;
using (PinToScreenOptionsForm pinToScreenOptionsForm = new PinToScreenOptionsForm(Options))
{
if (pinToScreenOptionsForm.ShowDialog(this) == DialogResult.OK)
{
if (TopMost != Options.TopMost)
{
TopMost = Options.TopMost;
}
AutoSizeForm();
}
}
} }
private void tsbClose_Click(object sender, EventArgs e) private void tsbClose_Click(object sender, EventArgs e)

View file

@ -0,0 +1,300 @@
namespace ShareX
{
partial class PinToScreenOptionsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.lblPlacement = new System.Windows.Forms.Label();
this.cbPlacement = new System.Windows.Forms.ComboBox();
this.lblPlacementOffset = new System.Windows.Forms.Label();
this.nudPlacementOffset = new System.Windows.Forms.NumericUpDown();
this.cbTopMost = new System.Windows.Forms.CheckBox();
this.cbKeepCenterLocation = new System.Windows.Forms.CheckBox();
this.cbShadow = new System.Windows.Forms.CheckBox();
this.cbBorder = new System.Windows.Forms.CheckBox();
this.lblBorderSize = new System.Windows.Forms.Label();
this.nudBorderSize = new System.Windows.Forms.NumericUpDown();
this.btnBorderColor = new ShareX.HelpersLib.ColorButton();
this.lblMinimizeSize = new System.Windows.Forms.Label();
this.nudMinimizeSizeWidth = new System.Windows.Forms.NumericUpDown();
this.nudMinimizeSizeHeight = new System.Windows.Forms.NumericUpDown();
this.lblMinimizeSizeX = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.nudPlacementOffset)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudBorderSize)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudMinimizeSizeWidth)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudMinimizeSizeHeight)).BeginInit();
this.SuspendLayout();
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(192, 336);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(104, 32);
this.btnOK.TabIndex = 15;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(304, 336);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(104, 32);
this.btnCancel.TabIndex = 16;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// lblPlacement
//
this.lblPlacement.AutoSize = true;
this.lblPlacement.Location = new System.Drawing.Point(13, 16);
this.lblPlacement.Name = "lblPlacement";
this.lblPlacement.Size = new System.Drawing.Size(74, 16);
this.lblPlacement.TabIndex = 0;
this.lblPlacement.Text = "Placement:";
//
// cbPlacement
//
this.cbPlacement.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbPlacement.FormattingEnabled = true;
this.cbPlacement.Location = new System.Drawing.Point(16, 40);
this.cbPlacement.Name = "cbPlacement";
this.cbPlacement.Size = new System.Drawing.Size(144, 24);
this.cbPlacement.TabIndex = 1;
//
// lblPlacementOffset
//
this.lblPlacementOffset.AutoSize = true;
this.lblPlacementOffset.Location = new System.Drawing.Point(173, 16);
this.lblPlacementOffset.Name = "lblPlacementOffset";
this.lblPlacementOffset.Size = new System.Drawing.Size(109, 16);
this.lblPlacementOffset.TabIndex = 2;
this.lblPlacementOffset.Text = "Placement offset:";
//
// nudPlacementOffset
//
this.nudPlacementOffset.Location = new System.Drawing.Point(176, 41);
this.nudPlacementOffset.Maximum = new decimal(new int[] {
300,
0,
0,
0});
this.nudPlacementOffset.Name = "nudPlacementOffset";
this.nudPlacementOffset.Size = new System.Drawing.Size(72, 22);
this.nudPlacementOffset.TabIndex = 3;
this.nudPlacementOffset.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// cbTopMost
//
this.cbTopMost.AutoSize = true;
this.cbTopMost.Location = new System.Drawing.Point(16, 80);
this.cbTopMost.Name = "cbTopMost";
this.cbTopMost.Size = new System.Drawing.Size(83, 20);
this.cbTopMost.TabIndex = 4;
this.cbTopMost.Text = "Top most";
this.cbTopMost.UseVisualStyleBackColor = true;
//
// cbKeepCenterLocation
//
this.cbKeepCenterLocation.AutoSize = true;
this.cbKeepCenterLocation.Location = new System.Drawing.Point(16, 112);
this.cbKeepCenterLocation.Name = "cbKeepCenterLocation";
this.cbKeepCenterLocation.Size = new System.Drawing.Size(148, 20);
this.cbKeepCenterLocation.TabIndex = 5;
this.cbKeepCenterLocation.Text = "Keep center location";
this.cbKeepCenterLocation.UseVisualStyleBackColor = true;
//
// cbShadow
//
this.cbShadow.AutoSize = true;
this.cbShadow.Location = new System.Drawing.Point(16, 144);
this.cbShadow.Name = "cbShadow";
this.cbShadow.Size = new System.Drawing.Size(75, 20);
this.cbShadow.TabIndex = 6;
this.cbShadow.Text = "Shadow";
this.cbShadow.UseVisualStyleBackColor = true;
//
// cbBorder
//
this.cbBorder.AutoSize = true;
this.cbBorder.Location = new System.Drawing.Point(16, 176);
this.cbBorder.Name = "cbBorder";
this.cbBorder.Size = new System.Drawing.Size(67, 20);
this.cbBorder.TabIndex = 7;
this.cbBorder.Text = "Border";
this.cbBorder.UseVisualStyleBackColor = true;
//
// lblBorderSize
//
this.lblBorderSize.AutoSize = true;
this.lblBorderSize.Location = new System.Drawing.Point(13, 208);
this.lblBorderSize.Name = "lblBorderSize";
this.lblBorderSize.Size = new System.Drawing.Size(78, 16);
this.lblBorderSize.TabIndex = 8;
this.lblBorderSize.Text = "Border size:";
//
// nudBorderSize
//
this.nudBorderSize.Location = new System.Drawing.Point(16, 232);
this.nudBorderSize.Maximum = new decimal(new int[] {
30,
0,
0,
0});
this.nudBorderSize.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.nudBorderSize.Name = "nudBorderSize";
this.nudBorderSize.Size = new System.Drawing.Size(72, 22);
this.nudBorderSize.TabIndex = 9;
this.nudBorderSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudBorderSize.Value = new decimal(new int[] {
1,
0,
0,
0});
//
// btnBorderColor
//
this.btnBorderColor.Color = System.Drawing.Color.Empty;
this.btnBorderColor.ColorPickerOptions = null;
this.btnBorderColor.Location = new System.Drawing.Point(104, 230);
this.btnBorderColor.Name = "btnBorderColor";
this.btnBorderColor.Size = new System.Drawing.Size(160, 26);
this.btnBorderColor.TabIndex = 10;
this.btnBorderColor.Text = "Border color";
this.btnBorderColor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnBorderColor.UseVisualStyleBackColor = true;
//
// lblMinimizeSize
//
this.lblMinimizeSize.AutoSize = true;
this.lblMinimizeSize.Location = new System.Drawing.Point(13, 272);
this.lblMinimizeSize.Name = "lblMinimizeSize";
this.lblMinimizeSize.Size = new System.Drawing.Size(89, 16);
this.lblMinimizeSize.TabIndex = 11;
this.lblMinimizeSize.Text = "Minimize size:";
//
// nudMinimizeSizeWidth
//
this.nudMinimizeSizeWidth.Location = new System.Drawing.Point(16, 296);
this.nudMinimizeSizeWidth.Maximum = new decimal(new int[] {
1000,
0,
0,
0});
this.nudMinimizeSizeWidth.Name = "nudMinimizeSizeWidth";
this.nudMinimizeSizeWidth.Size = new System.Drawing.Size(72, 22);
this.nudMinimizeSizeWidth.TabIndex = 12;
this.nudMinimizeSizeWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// nudMinimizeSizeHeight
//
this.nudMinimizeSizeHeight.Location = new System.Drawing.Point(120, 296);
this.nudMinimizeSizeHeight.Maximum = new decimal(new int[] {
1000,
0,
0,
0});
this.nudMinimizeSizeHeight.Name = "nudMinimizeSizeHeight";
this.nudMinimizeSizeHeight.Size = new System.Drawing.Size(72, 22);
this.nudMinimizeSizeHeight.TabIndex = 14;
this.nudMinimizeSizeHeight.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lblMinimizeSizeX
//
this.lblMinimizeSizeX.AutoSize = true;
this.lblMinimizeSizeX.Location = new System.Drawing.Point(98, 299);
this.lblMinimizeSizeX.Name = "lblMinimizeSizeX";
this.lblMinimizeSizeX.Size = new System.Drawing.Size(13, 16);
this.lblMinimizeSizeX.TabIndex = 13;
this.lblMinimizeSizeX.Text = "x";
//
// PinToScreenOptionsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(420, 380);
this.Controls.Add(this.lblMinimizeSizeX);
this.Controls.Add(this.nudMinimizeSizeHeight);
this.Controls.Add(this.nudMinimizeSizeWidth);
this.Controls.Add(this.lblMinimizeSize);
this.Controls.Add(this.btnBorderColor);
this.Controls.Add(this.nudBorderSize);
this.Controls.Add(this.lblBorderSize);
this.Controls.Add(this.cbBorder);
this.Controls.Add(this.cbShadow);
this.Controls.Add(this.cbKeepCenterLocation);
this.Controls.Add(this.cbTopMost);
this.Controls.Add(this.nudPlacementOffset);
this.Controls.Add(this.lblPlacementOffset);
this.Controls.Add(this.cbPlacement);
this.Controls.Add(this.lblPlacement);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Margin = new System.Windows.Forms.Padding(4);
this.MaximizeBox = false;
this.Name = "PinToScreenOptionsForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ShareX - Pin to screen options";
((System.ComponentModel.ISupportInitialize)(this.nudPlacementOffset)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudBorderSize)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudMinimizeSizeWidth)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudMinimizeSizeHeight)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Label lblPlacement;
private System.Windows.Forms.ComboBox cbPlacement;
private System.Windows.Forms.Label lblPlacementOffset;
private System.Windows.Forms.NumericUpDown nudPlacementOffset;
private System.Windows.Forms.CheckBox cbTopMost;
private System.Windows.Forms.CheckBox cbKeepCenterLocation;
private System.Windows.Forms.CheckBox cbShadow;
private System.Windows.Forms.CheckBox cbBorder;
private System.Windows.Forms.Label lblBorderSize;
private System.Windows.Forms.NumericUpDown nudBorderSize;
private HelpersLib.ColorButton btnBorderColor;
private System.Windows.Forms.Label lblMinimizeSize;
private System.Windows.Forms.NumericUpDown nudMinimizeSizeWidth;
private System.Windows.Forms.NumericUpDown nudMinimizeSizeHeight;
private System.Windows.Forms.Label lblMinimizeSizeX;
}
}

View file

@ -0,0 +1,94 @@
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2023 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
*/
#endregion License Information (GPL v3)
using ShareX.HelpersLib;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ShareX
{
public partial class PinToScreenOptionsForm : Form
{
public PinToScreenOptions Options { get; private set; }
public PinToScreenOptionsForm(PinToScreenOptions options)
{
Options = options;
InitializeComponent();
ShareXResources.ApplyTheme(this);
InitOptions();
LoadOptions();
}
private void InitOptions()
{
cbPlacement.Items.AddRange(Helpers.GetLocalizedEnumDescriptions<ContentAlignment>());
}
private void LoadOptions()
{
cbPlacement.SelectedIndex = Options.Placement.GetIndex();
nudPlacementOffset.SetValue(Options.PlacementOffset);
cbTopMost.Checked = Options.TopMost;
cbKeepCenterLocation.Checked = Options.KeepCenterLocation;
cbShadow.Checked = Options.Shadow;
cbBorder.Checked = Options.Border;
nudBorderSize.SetValue(Options.BorderSize);
btnBorderColor.Color = Options.BorderColor;
nudMinimizeSizeWidth.SetValue(Options.MinimizeSize.Width);
nudMinimizeSizeHeight.SetValue(Options.MinimizeSize.Height);
}
private void SaveOptions()
{
Options.Placement = Helpers.GetEnumFromIndex<ContentAlignment>(cbPlacement.SelectedIndex);
Options.PlacementOffset = (int)nudPlacementOffset.Value;
Options.TopMost = cbTopMost.Checked;
Options.KeepCenterLocation = cbKeepCenterLocation.Checked;
Options.Shadow = cbShadow.Checked;
Options.Border = cbBorder.Checked;
Options.BorderSize = (int)nudBorderSize.Value;
Options.BorderColor = btnBorderColor.Color;
Options.MinimizeSize = new Size((int)nudMinimizeSizeWidth.Value, (int)nudMinimizeSizeHeight.Value);
}
private void btnOK_Click(object sender, EventArgs e)
{
SaveOptions();
DialogResult = DialogResult.OK;
Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -654,7 +654,7 @@ private bool DoAfterCaptureJobs()
if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.PinToScreen)) if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.PinToScreen))
{ {
Image imageCopy = Image.CloneSafe(); Image imageCopy = Image.CloneSafe();
TaskHelpers.PinToScreen(imageCopy); TaskHelpers.PinToScreen(imageCopy, Info.TaskSettings.ToolsSettingsReference.PinToScreenOptions);
} }
if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.SendImageToPrinter)) if (Info.TaskSettings.AfterCaptureJob.HasFlag(AfterCaptureTasks.SendImageToPrinter))