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.
精彩评论