开发者

C# How can I watermark a jpeg image?

开发者 https://www.devze.com 2022-12-15 05:34 出处:网络
Using C# how would I watermark an jpeg image that I\'m reading into a memory stream and saving to a byte array?

Using C# how would I watermark an jpeg image that I'm reading into a memory stream and saving to a byte array?

using (MemoryStream imageStream = new MemoryStream())
{
      pbPreview.Image.Save(imageStr开发者_JAVA技巧eam, ImageFormat.Jpeg);
      photoBytes = imageStream.ToArray();
}

Thank you


Please take a look: Watermark Creator and Creating a Watermarked Photograph with GDI+ for .NET

A more detailed explanation here: Build a simple watermarking utility in C#

0

精彩评论

暂无评论...
验证码 换一张
取 消