开发者

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

开发者 https://www.devze.com 2023-02-03 23:46 出处:网络
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,

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

精彩评论

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