(PSD): interpret multi-channel images as Bgr32.

This commit is contained in:
morkt 2018-10-30 23:51:33 +04:00
parent 8ce70f1f9f
commit d56397e44b

View File

@ -111,6 +111,8 @@ namespace GameRes.Formats.Adobe
Format = PixelFormats.Bgr24; Format = PixelFormats.Bgr24;
else if (4 == m_info.Channels) else if (4 == m_info.Channels)
Format = PixelFormats.Bgra32; Format = PixelFormats.Bgra32;
else if (m_info.Channels > 4)
Format = PixelFormats.Bgr32;
else else
throw new NotSupportedException(); throw new NotSupportedException();
break; break;