本文整理汇总了PHP中pImage::drawRectangleMarker方法的典型用法代码示例。如果您正苦于以下问题:PHP pImage::drawRectangleMarker方法的具体用法?PHP pImage::drawRectangleMarker怎么用?PHP pImage::drawRectangleMarker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pImage
的用法示例。
在下文中一共展示了pImage::drawRectangleMarker方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$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));