image

  • LINUX下PHP网页生成快照(截屏)(xvfb and wkhtmltoimage)

    利用php截屏或实现网页快照我们需要用一个工具:xvfb and wkhtmltoimagek哦,这个工具目前只能在linux系统中使用,下面有兴趣的朋友可进入参考。 在做旅游攻略时,需要把......2016-11-25 16:56
  • php imagecolorallocatealpha 创建透明图片实例

    php imagecolorallocatealpha 创建透明图片实例 imagecolorallocatealpha(resource $image , int $red , int $green , int $blue , int $alpha ) imagecolorallocateal...2016-11-25 16:51
  • php imagecopyresized实例

    php imagecopyresized实例 描述 布尔imagecopyresized($ dst_image,$ src_image,$ dst_x,$ dst_y,$ src_x,$ src_y,$ dst_w,$ dst_h,$ src_w,$ src_h) imagecopyresized()拷贝一个......2016-11-25 16:51
  • php imagecreatetruecolor创建高清图片函数

    php imagecreatetruecolor创建高清图片函数 imagecreatetruecolor()返回一个图像标识符代表指定大小的黑色形象。 根据你的PHP和GD版本中函数定义与否。对于PHP 4.0.6通......2016-11-25 16:51
  • php imagealphablending

    imagealphablending (PHP 4中“= 4.0.6,PHP 5中) imagealphablending - 设置图像混合模式 报告错误描述 布尔imagealphablending($img,$blendMode $) imagealp......2016-11-25 16:51
  • php imageantialias

    imageantialias (PHP 4 >= 4.3.2, PHP 5) 描述 布尔imageantialias($sourc,$bool) 激活的行反走样快速绘制方法和有线多边形。它不支持阿尔法组件。它可以使用直接混......2016-11-25 16:51
  • php imagecolorallocate

    php imagecolorallocate imagecolorallocate - 分配一个彩色的图像 int imagecolorallocate ( resource $image , int $red , int $green , int $blue ) 返回一个颜色...2016-11-25 16:50
  • php利用imagecreatetruecolor动态生成高清图片代码

    //实例用我们用imagecreatetruecolor header ('Content-type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image...2016-11-25 16:50
  • getimagesize获取图片尺寸php函数

    php有现成的函数getimagesize用于获取图像的尺寸,具体的函数使用方法以及代码示例 <?php教程/* 1.jpg为你想获得其尺寸的图片 */ $arr = getimagesize("1.jpg");......2016-11-25 16:50
  • php imagettftext 为文字添加阴影实例

    array imagettftext ( resource image, int size, int angle, int x, int y, int color, string fontfile, string text) imagettftext() 将字符串 text 画到 image...2016-11-25 16:49
  • php imagefilledrectangle在图片画一矩形并填充

    //发送头文件 header("content-type: image/png"); //创建真彩色图像 $im=imagecreatetruecolor(100,50); //定义黑色 $black=imagecolorallocate($im,0,0,0); /...2016-11-25 16:49
  • php getimagesize函数获取图片宽高

    如果你想使用php获取图片的高与宽我们可以直接利用php中的getimagesize函数来操作,下面我来给大家详细介绍getimagesize函数使用方法。 getimagesize() 函数将测定......2016-11-25 16:47
  • PHP的imagecolorallocate()函数使用例子

    imagecolorallocate()函数可以实现创建不同颜色的图片了,下面来给各位朋友介绍一下这个函数使用例子,希望能帮助到大家。 在是使用PHP动态输出美丽图像的同时,也离不......2016-11-25 16:46
  • PHP中imagecopyresampled函数实现图片裁剪

    图片裁剪是根据用户提供的坐标然后在指定图片上利用图片裁剪函数imagecopyresampled进行图片剪切了,下面来看一个例子。 代码如下所示: 代码如下 复制代......2016-11-25 16:46
  • php getimagesize

    php getimagesize getimagesize是读取图片相关信息,返回一个具有四个单元的数组。索引 0 包含图像宽度的像素值,索引 1 包含图像高度的像素值。索引 2 是图像类型的标 <?......2016-11-25 16:30
  • 一个全面获取图象信息的函数getImageInfo()

    <?php function getImageInfo($img) { //$img为图象文件绝对路径 $img_info = getimagesize($img); switch ($img_info[2]) { case 1: $imgtype = "GIF";...2016-11-25 16:14
  • php image_type_to_mime_type

    php image_type_to_mime_type image_type_to_mime_type - 获取MIME的图像类型和getimagesize返回类型,exif_read_data,exif_thumbnail,本函数 <?php $filename = 'http:...2016-11-25 16:01
  • 解决Call to undefined function imagettftext()方法

    imagettftext是一个图形处理函数了,如果在使用imagettftext函数时碰到Call to undefined function imagettftext()的话就是函数组件没有打开了,所以我们只需要简单的配......2016-11-25 15:33
  • php imagecreate图片生成代码

    php imagecreate图片生成代码 if(isset($gd) && $gd==1 && $txt) { header ("Content-type: image/png"); $txt = urldecode(phpcms_auth($txt, 'DECODE',......2016-11-25 15:13
  • php imagecreatetruecolor图像裁剪

    php imagecreatetruecolor图像裁剪 任意图像裁剪成固定大小,图像不变形,空白处拉伸填充,图像始终铺满,不留空白,用过bcastr的朋友应该知道,bcastr就是保证了图像调用的不变......2016-11-25 15:13