/** * Get drawer of the image * * @param int $w Drawer width (from 0 to 1) (default to 1) * @param int $h Drawer height (from 0 to 1) (default to 1) * @param float $x Position on X axis of the center of the drawer (default to 0.5) * @param float $y Position on Y axis of the center of the drawer (default to 0.5) * @return Drawer */ function getDrawer($w = 1, $h = 1, $x = 0.5, $y = 0.5) { $this->create(); $this->drawer->setSize($w, $h); $this->drawer->setPosition($x, $y); return $this->drawer; }