Project

General

Profile

Feature #15288 » 2049.diff

Administrator Admin, 2010-06-25 16:13

View differences:

typo3_src.new/t3lib/class.t3lib_stdgraphic.php 2010-06-25 15:49:36.080404674 +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);
$tmpColor = ImageColorAllocate($im, $cols[0], $cols[1], $cols[2]);
imagefilledellipse($im, $cords[0], $cords[1], $cords[2], $cords[3], $tmpColor);
}
/**
* Implements the "EFFECT" GIFBUILDER object
* The operation involves ImageMagick for applying effects
*
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_stdgraphic.php']);
}
?>
?>
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;
}
}
}
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_gifbuilder.php']);
}
?>
?>
(3-3/5)