在图像上写透明文本 [英] Writing Transparent Text on Image

查看:151
本文介绍了在图像上写透明文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在图像(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,可从 http://www.progdigy.com/ 下载。有很多例子应该可以用作一个例子。

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.

这篇关于在图像上写透明文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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