如何在图像中嵌入小徽标 [英] How can I embed a small logo inside an image

查看:72
本文介绍了如何在图像中嵌入小徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






我有一项要求,我必须完成。



我会在服务器端获得大量图像(png)。在每个图像上,我必须嵌入一个公司特定的徽标,这实际上是另一个png文件,但尺寸非常小。



当前项目是VC ++。



I have a requirement which I have to complete.

I will get lots of images (png) on the server side. On each image I have to embed a company specific logo which is actually another png file but very small in size.

The current project is in VC++.

推荐答案

作为一种快速而肮脏的方法,您可以加载并绘制原始方法,然后(加载并)在其上绘制公司徽标,最后保存生成的图像(几行代码,使用 GDI + ,我猜。)
As a quick-and-dirty approach you may load and draw the original one, then (load and) draw the company logo over it and finally save the resulting image (few lines of code, using GDI+, I guess).


你所谈论的功能叫做 Watermark 的;水印是添加到图像的图像或标签。可以将其添加到图像中以表示版权或任何其他此类功能。



请仔细阅读上一个帖子 [ ^ ]并查看第一个答案中附带的库。



Visual C ++只是微软在编辑器中实现的C ++;基本底层语言没有区别。因此,您也可以使用C ++库。
The feature that you're talking about is called a Watermark; watermark is an image or a label added to an image. Which can be added to the images to denote the copyright, or any other such functionality.

Please go through this previous thread[^] and look at the library attached in the first answer.

Visual C++ is just implementation of C++ by Microsoft in their editor; no difference in basic underlying language. So, you can use C++ libraries too.


这篇关于如何在图像中嵌入小徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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