各位高手请教将图片水平、垂直翻转(上下,左右)程序 这位老兄说的那个函数是只能对 图片90 180 270。等的度数进行翻转啊 不能进行图片水平、垂直翻转(上下,左右) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function image_mirror ($input_image_resource){ $width = imagesx ( $input_image_resource ); $height = imagesy ( $input_image_resource ); $output_image_resource = imagecreatetruecolor ( $width, $height ); $y = 1; while ( $y < $height ) { for ( $i = 1; $i <= $width; $i++ ) imagesetpixel ( $output_image_resource, $i, $y, imagecolorat ( $input_image_resource, ( $i ), ( $height - $y ) ) ); $y = $y + 1; } return $output_image_resource;} PHP中文查找。 mysql分组新问题 php 上传附件到SqlServer中、插入错误!开头标识符过长 。。。。 Apache安装问题!!!! 求一段php取值代码 怎么我的XML在WIN98下不能显示呢? 不知道是不是php本身还是ora数据库其他地方引起的问题。 各位DX帮忙。。。关于取ip地址 这两天问的问题较多,没分啦,高手帮帮我,急啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 这个正则该怎么写?高手来帮帮忙 在同一个类中调用构造函数的返回值得问题? 关于header("location:index.php");问题
{
$width = imagesx ( $input_image_resource );
$height = imagesy ( $input_image_resource );
$output_image_resource = imagecreatetruecolor ( $width, $height );
$y = 1; while ( $y < $height )
{
for ( $i = 1; $i <= $width; $i++ )
imagesetpixel ( $output_image_resource, $i, $y, imagecolorat ( $input_image_resource, ( $i ), ( $height - $y ) ) );
$y = $y + 1;
}
return $output_image_resource;
}