Feature #15288 » 2049v2.diff
typo3_src.new/t3lib/class.t3lib_stdgraphic.php 2010-06-25 16:24:57.521657849 +0200 | ||
---|---|---|
}
|
||
/**
|
||
* Implements the "Ellipse" GIFBUILDER object
|
||
*
|
||
* @param pointer GDlib image pointer
|
||
* @param array TypoScript array with configuration for the GIFBUILDER object.
|
||
* @param array The current working area coordinates.
|
||
* @return void
|
||
* @see tslib_gifBuilder::make()
|
||
*/
|
||
function makeEllipse(&$im, $conf, $workArea) {
|
||
$cords = t3lib_div::intExplode(',', $conf['dimensions'] . ',,,');
|
||
$conf['offset'] = $cords[0] . ',' . $cords[1];
|
||
$cords = $this->objPosition($conf, $workArea, array($cords[2], $cords[3]));
|
||
$cols = $this->convertColor($conf['color']);
|
||
$this->reduceColors($im, 256, 255);
|
||
$fillingColor = ImageColorAllocate($im, $cols[0], $cols[1], $cols[2]);
|
||
imagefilledellipse($im, $cords[0], $cords[1], $cords[2], $cords[3], $fillingColor);
|
||
}
|
||
/**
|
||
* Implements the "EFFECT" GIFBUILDER object
|
||
* The operation involves ImageMagick for applying effects
|
||
*
|
typo3_src.new/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php 2010-06-25 15:51:42.771661672 +0200 | ||
---|---|---|
$this->setup[$theKey.'.']['height'] = $this->calcOffset($this->setup[$theKey.'.']['height']);
|
||
}
|
||
break;
|
||
case 'ELLIPSE':
|
||
if ($this->setup[$theKey . '.']['dimensions']) {
|
||
$this->setup[$theKey . '.']['dimensions'] = $this->calcOffset($this->setup[$theKey . '.']['dimensions']);
|
||
}
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
$this->workArea = $this->defaultWorkArea; // this sets the current to the default;
|
||
}
|
||
break;
|
||
case 'ELLIPSE':
|
||
$this->makeEllipse($this->im, $conf, $this->workArea);
|
||
break;
|
||
}
|
||
}
|
||
}
|