VC ++中的源代码以在jpeg图像上添加水印 [英] source code in VC++ to add watermark on jpeg image

查看:133
本文介绍了VC ++中的源代码以在jpeg图像上添加水印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此网站上获得了C#源代码,可在jpeg图像上添加水印.您能在VC ++中给我同样的东西吗?

I got a C# source code to add watermark on jpeg image at this website . Can you give me the same in VC++.

推荐答案

我假设您是指您在此处找到的某些文章,因此您应该在论坛末尾发布此请求
I assume you are referring to some article you found here, so you should post this request in the forum at the end of the article, so the author sees it.


您可以将主要工具(第三方库)用于VC ++.
You can use lead tools (third party library) for the same with VC++


使用GDI +从jpg加载位图类,然后在其上绘制水印(通过基于源位图创建内存DC,然后选择位图,然后使用GDI函数绘制水印),然后使用GDI +将其另存为jpg ...这可能是.net样本正在执行的操作
Use GDI+ to load a Bitmap class from a jpg, then paint your watermark onto it (by creating a memory DC based on your source bitmap, and selecting the bitmap into it, and using GDI functions to paint your watermark) then use GDI+ to save it as a jpg ... which is probably what the .net sample is doing


这篇关于VC ++中的源代码以在jpeg图像上添加水印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆