OEModule\OphCoCvi\controllers\PrintTestController::testGdImage PHP Method

testGdImage() public method

public testGdImage ( )
    public function testGdImage()
    {
        $image = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream");
        $bgColor = imagecolorallocate($image, 0, 0, 0);
        $textColor = imagecolorallocate($image, 255, 255, 255);
        imagestring($image, 2, 10, 5, "Test String", $textColor);
        return $image;
    }