PHP
class SlideVerifyService extends BaseService
{
public $basePath;
public $im = null;
public $im_fullbg = null;
public $im_bg = null;
public $im_slide = null;
public $bg_width = 408;
public $bg_height = 150;
public $mark_width = 50;
public $mark_height = 50;
public $_x = 0;
public $_y = 0;
public function make($bg_width = 408, $bg_height = 150)
{
$this->bg_width = $bg_width;
$this->bg_height = $bg_height;
$this->_init();
$this->_createSlide();
$this->_createBg();
ob_start();
imagepng($this->im_bg);
$bg_data = ob_get_contents();
ob_end_clean();
ob_start();
imagepng($this->im_slide, null, 7);
$slide_data = ob_get_contents();
ob_end_clean();
$this->_destroy();
return [
"capt
|