Lines Matching defs:point1
1120 * @param $point1 Minimum corner of the box
1127 public function drawTextBox(Point $point1, Point $point2, $Text, $Angle = 0, Color $color = null, $Align = ALIGN_LEFT, ShadowProperties $shadowProperties = null, Color $backgroundColor = null, $Alpha = 100) {
1139 $AreaWidth = $point2->getX() - $point1->getX();
1140 $AreaHeight = $point2->getY() - $point1->getY();
1144 $point1,
1151 $newPosition = $point1->addIncrement(1, $this->FontSize + 1);
1154 $newPosition = $point1->addIncrement(
1161 $point1->getY() + $this->FontSize + 1);
1164 $newPosition = $point1->addIncrement(
1170 $newPosition = $point1->addIncrement(
1177 $point1->getY() + ($AreaHeight / 2) - ($TextHeight / 2));
1180 $newPosition = new Point($point1->getX() + 1,
1184 $newPosition = new Point($point1->getX() + ($AreaWidth / 2) - ($TextWidth / 2),
2812 private function drawGradient(Point $point1, Point $point2, Color $color, $decay) {
2815 $YStep = ($point2->getY() - $point1->getY() - 2) / $decay;
2818 $Yi1 = $point1->getY() + ($i * $YStep);
2825 new Point($point1->getX(), $Yi1),
2835 $YStep = ($point2->getY() - $point1->getY() - 2) / -$decay;
2836 $Yi1 = $point1->getY();
2837 $Yi2 = $point1->getY() + $YStep;
2842 new Point($point1->getX(), $Yi1),