protected function readWMImage($path = '')
{
if (strlen(trim($path)) > 0 && !isset($this->wm_image)) {
$this->readWMImageData($path);
switch ($this->wm_image_type) {
case 1:
$this->wm_image = imagecreatefromgif($path);
break;
case 2:
$this->wm_image = imagecreatefromjpeg($path);
break;
case 3:
$this->wm_image = imagecreatefrompng($path);
break;
case 15:
$this->wm_image = imagecreatefromwbmp($path);
break;
case 999:
default:
$this->wm_image = imagecreatefromstring($path);
break;
}
// end switch
}
// end if
}