mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
I've added a feature that does best fit of the surface in the editor when a file (from clipboard) is opened.
This commit is contained in:
parent
7a47b4f6ff
commit
354eec34a3
2 changed files with 13 additions and 3 deletions
|
@ -181,8 +181,19 @@ namespace Greenshot.Editor.Forms
|
||||||
|
|
||||||
UpdateUi();
|
UpdateUi();
|
||||||
|
|
||||||
// Use best fit
|
// Use best fit, for those capture modes where we can get huge images
|
||||||
ZoomBestFitMenuItemClick(this, EventArgs.Empty);
|
bool useBestFit = _surface.CaptureDetails.CaptureMode switch
|
||||||
|
{
|
||||||
|
CaptureMode.File => true,
|
||||||
|
CaptureMode.Clipboard => true,
|
||||||
|
CaptureMode.IE => true,
|
||||||
|
_ => false
|
||||||
|
};
|
||||||
|
|
||||||
|
if (useBestFit)
|
||||||
|
{
|
||||||
|
ZoomBestFitMenuItemClick(this, EventArgs.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
// Workaround: As the cursor is (mostly) selected on the surface a funny artifact is visible, this fixes it.
|
// Workaround: As the cursor is (mostly) selected on the surface a funny artifact is visible, this fixes it.
|
||||||
HideToolstripItems();
|
HideToolstripItems();
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--<system.windows.forms jitDebugging="true" />-->
|
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue