You are here

protected function TextimageTextbox::translateBoxPoints in Textimage 7.3

Translate the box by an offset.

Parameters

array $offset: offset array (x, y)

2 calls to TextimageTextbox::translateBoxPoints()
TextimageTextbox::rotateBoxPoints in classes/TextimageTextbox.inc
Rotate the box.
TextimageTextbox::set in classes/TextimageTextbox.inc
Property setter.

File

classes/TextimageTextbox.inc, line 146
Textimage - Font textbox management class.

Class

TextimageTextbox
Textimage - Font textbox management class.

Code

protected function translateBoxPoints($offset) {
  for ($i = 0; $i < 7; $i += 2) {
    $this->points[$i] += $offset[0];
    $this->points[$i + 1] += $offset[1];
  }
  $this->basepoint[0] += $offset[0];
  $this->basepoint[1] += $offset[1];
}