1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Automatically apply gamma fix when previewed and an image is edited externally.

This commit is contained in:
KillzXGaming 2020-07-11 11:52:03 -04:00
parent 336efb45ff
commit 5a375defdb

View File

@ -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(