📌  相关文章
📜  将位图转换为字节数组c#代码示例

📅  最后修改于: 2022-03-11 14:48:48.449000             🧑  作者: Mango

代码示例5
public static byte[] ImageToByte2(Image img)
{
    using (var stream = new MemoryStream())
    {
        img.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
        return stream.ToArray();
    }
}