为您找到相关结果37,134个
PHP 5.0创建图形的实用方法完整篇_php技巧_脚本之家
如果您希望图像的大小是 400X200,就可以采用下面的方法: $ge = new GraphicsEnvironment( 400, 200, -1000, -1000, 1000, 1000 ); 您会得到一个纵向缩小后的图像,如图 10 所示。 图10. 图形的 400X200 版本 这展示了代码如何自动调整图像的大小来适合所请求的图像。
www.jb51.net/article/13494_a...htm 2025-4-19
matplotlib jupyter notebook 图像可视化 plt show操作_python_脚本之...
fig.set_size_inches(2,2)#200x200 fig.canvas.manager.window.move(300,300) plt.imshow('your img sequence array') plt.axis('off') plt.gca().xaxis.set_major_locator(plt.NullLocator()) plt.gca().yaxis.set_major_locator(plt.NullLocator()) ...
www.jb51.net/article/1853...htm 2025-3-20
GD库实现webp转换jpg的PHP程序_php实例_脚本之家
1)创建一个200X200像素的黑色图像 1 2 3 $image = imagecreate(200,200); $black = imagecolorallocate($image,0,0,0); imagefill($image,0,0,$black); 2)在图像中添加文本 1 2 3 $white = imagecolorallocate($image,255,255,255); $text = 'Hello, GD!'; imagettftext($image,20,0,70,100,$...
www.jb51.net/program/318380l...htm 2025-4-17