Split PNG into RGB and Alpha Channels
问题 I'm trying to do some automated processing of PNG files that takes in an RGBa .png file and outputs two jpeg files: 1 that is just the RGB channels and the other that is just the alpha channel, as a greyscale image. Is there any way to do this in C# natively? If a third party library is required, that is fine as long as it's free/open source, but I would prefer to just do it directly with GDI or something. 回答1: Here is my working code: /// <summary> /// Split PNG file into two JPGs (RGB and