当前位置: 首页>>代码示例>>PHP>>正文


PHP pImage::drawRectangleMarker方法代码示例

本文整理汇总了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));
开发者ID:OndroNR,项目名称:bitcoin-hal10k,代码行数:31,代码来源:example.text.alignment.php


注:本文中的pImage::drawRectangleMarker方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。