You are here

function pDraw::drawRectangleMarker in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pDraw.class.php \pDraw::drawRectangleMarker()
2 calls to pDraw::drawRectangleMarker()
pDraw::drawBezier in pChart/class/pDraw.class.php
pDraw::drawText in pChart/class/pDraw.class.php

File

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);
}