php生成图像卷曲箭头

发布于 2024-12-15 09:14:36 字数 519 浏览 2 评论 0 原文

是否可以使用 GD 在 PHP 中创建此图像?我知道我需要使用 GD 和 imagecreate、imagecolorallocate、imagedestroy 等...但我不知道如何做曲线

我需要用这些图案创建多个箭头

  • 不同类型的箭头
  • 不同的曲线倾斜度
  • 不同的颜色
  • 不同的长度

<强>编辑:这样我就不必在互联网上查找箭头(基于用户/客户端规范)。然后稍后我将向图像添加文本(例如:单击下一步或按照箭头操作)。因为我不是图形设计师,所以使用 gd 创建这些图像对我来说会更容易。

例如:

http://kennebecvalleycoaching.com/red_arrow_curve.JPG
http://s3.amazonaws.com/satisfaction-production/s3_images/13664/curved_inline.png

谢谢

is it possible to create this image in PHP using GD ? i know i need to use GD and imagecreate, imagecolorallocate, imagedestroy etc... but i have no idea how to do the curve

i need to create multiple arrows with these patterns

  • different type of arrows
  • different inclination of the curve
  • different colors
  • different length

edit: this way i don't have to look on the internet for arrows (based on a user/client specs). and then later i will add text to the image (for example: click next or follow the arrow). since im not a graphic designer, creating these iamges using gd will be easier for me.

eg:

http://kennebecvalleycoaching.com/red_arrow_curve.JPG
http://s3.amazonaws.com/satisfaction-production/s3_images/13664/curved_inline.png

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

<逆流佳人身旁 2024-12-22 09:14:36

您可以研究画布或 raphael 之类的东西,并在客户端创建图形元素,而不是在服务器端进行。它将更加灵活,并且更少麻烦。

Instead of doing it server side, you could investigate things like canvas, or raphael, and create the graphical elements clientside. It will be much more flexible, and less hassle.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文