1
0
mirror of synced 2024-09-24 19:48:21 +02:00

Add support for exporting gamma correction if enabled

This commit is contained in:
KillzXGaming 2019-10-20 20:37:37 -04:00
parent a8016a2868
commit e4654f8dff
2 changed files with 8 additions and 8 deletions

View File

@ -1633,12 +1633,12 @@ namespace LayoutBXLYT.Cafe
ExternalLayout.header.TextureManager = layoutFile.TextureManager;
/* var textureList = ExternalLayout.GetTextures();
foreach (var tex in textureList)
if (!textures.ContainsKey(tex.Key))
textures.Add(tex.Key, tex.Value);
var textureList = ExternalLayout.GetTextures();
foreach (var tex in textureList)
if (!textures.ContainsKey(tex.Key))
textures.Add(tex.Key, tex.Value);
textureList.Clear();*/
textureList.Clear();
}
}

View File

@ -939,9 +939,9 @@ namespace Toolbox.Library
Bitmap bitMap = GetBitmap(SurfaceLevel, MipLevel);
if (Runtime.ImageEditor.UseComponetSelector)
{
BitmapExtension.SetChannel(bitMap, RedChannel, GreenChannel, BlueChannel, AlphaChannel);
}
bitMap = BitmapExtension.SetChannel(bitMap, RedChannel, GreenChannel, BlueChannel, AlphaChannel);
if (Runtime.ImageEditor.PreviewGammaFix)
bitMap = BitmapExtension.AdjustGamma(bitMap, 1.0f / 2.2f);
if (Parameters.FlipY)
bitMap.RotateFlip(RotateFlipType.RotateNoneFlipY);