function pDraw::drawRectangleMarker

5.x pDraw.class.php pDraw::drawRectangleMarker($X, $Y, $Format = "")
2 calls to pDraw::drawRectangleMarker()
pDraw::drawBezier in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawText in inc/pchart/pchart/class/pDraw.class.php

File

inc/pchart/pchart/class/pDraw.class.php, line 567

Class

pDraw

Code

function drawRectangleMarker($X, $Y, $Format = "") 
 {
  $Size = isset($Format ["Size"]) ? $Format ["Size"] : 4;

  $HalfSize = floor($Size / 2);
  $this->drawFilledRectangle($X -$HalfSize, $Y -$HalfSize, $X + $HalfSize, $Y + $HalfSize, $Format);
}