简体   繁体   English

复合拉伸分层图像

[英]composite stretch layered image

how can I layer one smaller image on another larger image, and then stretch the smaller image to get the same dimension as the other? 如何将一个较小的图像叠加在另一个较大的图像上,然后拉伸较小的图像以获得与另一个图像相同的尺寸?

tmp.png is 210*22px tmp.png为210 * 22px

bg.png is 10*22px bg.png为10 * 22px

composite bg.png tmp.png tmp.png 复合bg.png tmp.png tmp.png

Use imagecopyresampled ! 使用imagecopyresampled Read the user comments on the linked page if you have trouble with transparency. 如果您对透明度有疑问,请阅读链接页面上的用户评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM