开发者

How to convert font to image(PNG) in DirectWrite format using Php?

I need to develop a PHP code through which a user is able convert Fonts(Text) into Images(PNG), in the same time the user will have the option to change the images into Grayscale, GDI and DirectWrite,during 开发者_运维知识库submitting the form. So the first two i.e. Grayscale, GDI are working well but I cnt develop the DirectWrite. Any help?


DirectWrite seems to be a Windows API designed for direct rendering of text.

PHP has spotty support for calling Win32 API functions. Your best bet may be writing a program in a Windows-native language (like C# or VB.net) that creates the image using the proper API calls, and then simply calling that program from your PHP script.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜