<?php /** * Creating a Presentation Card */ require '../src/GDImage/GDUtils.php'; require '../src/GDImage/GDImage.php'; require '../src/GDImage/GDFigure.php'; require '../src/GDImage/GDText.php'; require '../src/GDImage/GDCanvas.php'; // Creating an avatar image $avatar_image = new GDImage(); $avatar_image->load('http://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?s=100.jpg'); $avatar_image->setTop(60); $avatar_image->setLeft(70); $about_text = new GDText("MY AWESOME PRESENTATION CARD GENERATED WITH GDIMAGE"); $about_text->setSize(16); $about_text->setWidth(300); $about_text->setLeft(210); $about_text->setTop(75); $about_text->setColor(204, 164, 116); $about_text->setFontface('fonts/Lato-Lig.ttf'); $twitter_text = new GDText('@myname'); $twitter_text->setSize(11); $twitter_text->setWidth(70); $twitter_text->setLeft(450); $twitter_text->setTop(210); $twitter_text->setColor(130, 127, 125); $twitter_text->setFontface('fonts/Lato-Reg.ttf'); $canvas_figure = new GDFigure(550, 250); $canvas_figure->setBackgroundColor(47, 42, 39);