mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Automatically apply gamma fix when previewed and an image is edited externally.
This commit is contained in:
parent
336efb45ff
commit
5a375defdb
1 changed files with 5 additions and 0 deletions
|
@ -1113,6 +1113,11 @@ namespace Toolbox.Library.Forms
|
|||
if (image == null)
|
||||
return;
|
||||
|
||||
if (Runtime.ImageEditor.PreviewGammaFix) {
|
||||
image = BitmapExtension.AdjustGamma(image, 2.2f);
|
||||
DecodeBack = true;
|
||||
}
|
||||
|
||||
if (saveBtn.InvokeRequired)
|
||||
{
|
||||
saveBtn.Invoke(new MethodInvoker(
|
||||
|
|
Loading…
Add table
Reference in a new issue