1
0
mirror of synced 2025-02-20 12:41:10 +01:00

Export images with channel components enabled if used in image editor

This commit is contained in:
KillzXGaming 2019-06-25 15:28:48 -04:00
parent 7276ed399c
commit 7b18d66991
4 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -692,6 +692,10 @@ namespace Switch_Toolbox.Library
progressBar.Refresh();
Bitmap bitMap = GetBitmap(SurfaceLevel, MipLevel);
if (Runtime.ImageEditor.UseComponetSelector)
{
BitmapExtension.SetChannel(bitMap, RedChannel, GreenChannel, BlueChannel, AlphaChannel);
}
bitMap.Save(FileName);
bitMap.Dispose();