问题描述
如何在图像(Jpg,Bmp)或透明文本(颜色作为相同的背景图像)上写一个半透明文本,但是有一个阴影,我想做的是对图像进行水印。
How can I write a semi transparent text on an Image (Jpg,Bmp), or a transparent text (color as same background Image) but with a shadow, something I want to do to watermark the images.
我想使用Delphi win32完成。
I want to accomplish that using Delphi win32.
推荐答案
尝试完成的只是简单地编写具有透明背景的文字;即您正在尝试获取一些形式的alpha混合文本写在图像上。
最简单的方法是使用GDI +例程。它们被封装用于delphi,可从下载。有很多例子应该可以用作一个例子。
I presume what you're trying to accomplish is a little more complicated than simply writing text with a transparent background; i.e. you are trying to get some form of alpha-blended text written on the image.
The simplest method would be to make use of the GDI+ routines. They are encapsulated for delphi and available for download from http://www.progdigy.com/. There are many examples there which should be usable as an example.
这篇关于在图像上写透明文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!