$Settings = array("StartR" => 231, "StartG" => 228, "StartB" => 155, "EndR" => 138, "EndG" => 91, "EndB" => 10, "Alpha" => 50);
$myPicture->drawGradientArea(0, 0, 550, 175, DIRECTION_VERTICAL, $Settings);
/* Set the default font */
$myPicture->setFontProperties(array("FontName" => "../fonts/calibri.ttf", "FontSize" => 20));
/* Draw the text box */
$myPicture->setShadow(FALSE);
$myPicture->drawFilledRectangle(141, 77, 393, 126, array("Alpha" => 20, "R" => 230, "G" => 230, "B" => 230));
$myPicture->drawRectangle(141, 77, 393, 126, array("R" => 50, "G" => 50, "B" => 50));
/* Write the text */
$myPicture->setShadow(TRUE, array("X" => 1, "Y" => 1, "R" => 0, "G" => 0, "B" => 0, "Alpha" => 20));
$TextSettings = array("R" => 201, "G" => 230, "B" => 40, "FontSize" => 40);
$myPicture->drawText(144, 125, "My text box", $TextSettings);
/* Prepare and draw the markers */
$myPicture->setShadow(TRUE, array("X" => 1, "Y" => 1, "R" => 0, "G" => 0, "B" => 0, "Alpha" => 20));
$MyMarkerSettings = array("R" => 255, "G" => 0, "B" => 0, "BorderR" => 0, "BorderB" => 0, "BorderG" => 0, "Size" => 4);
$myPicture->drawRectangleMarker(141, 77, $MyMarkerSettings);
$myPicture->drawRectangleMarker(141, 101, $MyMarkerSettings);
$myPicture->drawRectangleMarker(141, 126, $MyMarkerSettings);
$myPicture->drawRectangleMarker(260, 77, $MyMarkerSettings);
$myPicture->drawRectangleMarker(260, 101, $MyMarkerSettings);
$myPicture->drawRectangleMarker(260, 126, $MyMarkerSettings);
$myPicture->drawRectangleMarker(393, 77, $MyMarkerSettings);
$myPicture->drawRectangleMarker(393, 101, $MyMarkerSettings);
$myPicture->drawRectangleMarker(393, 126, $MyMarkerSettings);
/* Change the font settings */
$myPicture->setFontProperties(array("FontName" => "../fonts/calibri.ttf", "FontSize" => 7));
$myPicture->setShadow(FALSE);
/* Write the arrows */
$myPicture->drawArrowLabel(139, 75, "TEXT_ALIGN_TOPLEFT", array("Length" => 20, "Angle" => 45, "RoundPos" => TRUE));
$myPicture->drawArrowLabel(139, 101, "TEXT_ALIGN_MIDDLELEFT", array("Length" => 20, "Angle" => 90, "RoundPos" => TRUE));
$myPicture->drawArrowLabel(139, 128, "TEXT_ALIGN_BOTTOMLEFT", array("Length" => 20, "Angle" => 135, "RoundPos" => TRUE));