编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « HaruImage::setColorMask
  • HaruEncoder »
  • PHP Manual
  • HaruImage
  • Set the image mask

HaruImage::setMaskImage

(PECL haru >= 0.0.1)

HaruImage::setMaskImage — Set the image mask

说明

HaruImage::setMaskImage ( object $mask_image ) : bool

Sets the image used as image-mask. It must be 1bit gray-scale color image.

参数

mask_image

A valid HaruImage instance.

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

相关文章
php ibm db2 函数 set options for connection or statement resourcesphp eio 函数 set maximum parallel threadsphp gd 和图像处理 函数 get or set the resolution of the imagephp swoole 函数 set the process namephp gmagick set the iterator to the position in the image list specified with the index parameterphp harudoc load png image and return haruimage instancephp haruimage get the number of bits used to describe each color component of the imagephp haruimage get the height of the imagephp haruimage get size of the imagephp haruimage get the width of the imagephp haruimage set the color mask of the imagephp haruimage set the image maskphp ktaglib id3v2 attachedpictureframe set the type of the imagephp imagick set image sizephp imagick gets image clip maskphp imagick set image artifactphp imagick sets image clip maskphp numberformatter set a text attributephp ziparchive set the compression method of an entry defined by its indexphp zmqdevice set the idle callback function
关注编程学问公众号
编程学问网 湘ICP备20001732号