private function createImageOfTextEmail() { $image = new Images(100, 50, FALSE); $image->setText(1, new Point(50, 25), $this->to, FALSE, new Color(255, 255, 255)); $image->setBackgroundColor(new Color(0, 0, 0)); header('Content-Type: image/png'); return $image->toPNG(); }
public final function isInImage(Images $images) { return $this->getX() < $images->getWidth() && $this->getY() < $images->getHeight(); }