getFocusPointX() public method

Returns the x coordinate of the focus point.
public getFocusPointX ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * Crops the given image according to the focus point defined in the file version.
  *
  * @param ImageInterface $image
  * @param FileVersion $fileVersion
  * @param array $scale
  *
  * @return ImageInterface
  */
 private function applyFocus(ImageInterface $image, FileVersion $fileVersion, array $scale)
 {
     return $this->modifyAllLayers($image, function (ImageInterface $layer) use($fileVersion, $scale) {
         return $this->focus->focus($layer, $fileVersion->getFocusPointX(), $fileVersion->getFocusPointY(), $scale['x'], $scale['y']);
     });
 }