Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 GD 裁剪图像,但我希望它围绕特定形状进行裁剪,而不仅仅是一个正方形。
这可能吗?
一种方法是创建所需正方形大小的蒙版,其中包含透明的 Alpha 通道。然后将它放在原始图像上,这样你就可以裁剪一个圆圈。