MagickWad是一个PHP的模块,用来访问ImageMagick的图像处理库。下面是一个使用MagicWad的代码片段:
$magick_wad=NewMagickWad();MagickReadImage($magick_wad,'rose.jpg');$drawig_wad=NewDrawigWad();DrawSetFot($drawig_wad,"/usr/share/fots/bitstream-vera/Vera.ttf");DrawSetFotSize($drawig_wad,20);DrawSetGravity($drawig_wad,MW_CeterGravity);$pixel_wad=NewPixelWad();PixelSetColor($pixel_wad,"white");DrawSetFillColor($drawig_wad,$pixel_wad);if(MagickAotateImage($magick_wad,$drawig_wad,0,0,0,"Rose")!=0){MagickEchoImageBlob($magick_wad);}else{echoMagickGetExceptioStrig($magick_wad);}?>安装方法:
下载php_magickwad_q16_st.dllfor5.2.x将其放在PHP的扩展目录在php.ii文件总增加extesio=php_magickwad_q16_st.dll重新启动apache









评论