本文整理匯總了PHP中ImageManager::createTransImage方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImageManager::createTransImage方法的具體用法?PHP ImageManager::createTransImage怎麽用?PHP ImageManager::createTransImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ImageManager
的用法示例。
在下文中一共展示了ImageManager::createTransImage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: combine
private function combine()
{
if (!$this->done) {
if (PHP_VERSION_ID < 50300) {
clearstatcache();
}
$this->checkSrcs();
if (!empty($this->src_infos)) {
$this->checkSizes();
if ($this->dest_width > 20000 || $this->dest_height > 20000) {
throw new Yaf_Exception('combined image size too large may cause out of memory exception');
}
$this->canvas = ImageManager::createTransImage($this->dest_width, $this->dest_height);
switch ($this->combine_mode) {
case self::COMBINE_HORIZONTAL:
$this->done = $this->combineHorizontal();
break;
case self::COMBINE_VERTICAL:
$this->done = $this->combineVertical();
break;
}
}
}
return $this->done;
}