标签: c# jpeg
使用C#如何将我正在读取的jpeg图像加水印到内存流中并保存到字节数组?
using (MemoryStream imageStream = new MemoryStream()) { pbPreview.Image.Save(imageStream, ImageFormat.Jpeg); photoBytes = imageStream.ToArray(); }
谢谢
答案 0 :(得分:3)
请查看:Watermark Creator和Creating a Watermarked Photograph with GDI+ for .NET
此处有更详细的解释:Build a simple watermarking utility in C#