mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Add support for exporting gamma correction if enabled
This commit is contained in:
parent
a8016a2868
commit
e4654f8dff
2 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue