Skip to content
Extraits de code Groupes Projets
Valider cc6f653c rédigé par amemo's avatar amemo
Parcourir les fichiers

autodoc

parent 1235b2fb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2764,12 +2764,14 @@ function produire_image_typo() { ...@@ -2764,12 +2764,14 @@ function produire_image_typo() {
// available at http://phpthumb.sourceforge.net /// // available at http://phpthumb.sourceforge.net ///
////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////
class phpthumb_functions { class phpthumb_functions {
// http://doc.spip.org/@GetPixelColor
function GetPixelColor(&$img, $x, $y) { function GetPixelColor(&$img, $x, $y) {
if (!is_resource($img)) { if (!is_resource($img)) {
return false; return false;
} }
return @ImageColorsForIndex($img, @ImageColorAt($img, $x, $y)); return @ImageColorsForIndex($img, @ImageColorAt($img, $x, $y));
} }
// http://doc.spip.org/@LittleEndian2String
function LittleEndian2String($number, $minbytes=1) { function LittleEndian2String($number, $minbytes=1) {
$intstring = ''; $intstring = '';
while ($number > 0) { while ($number > 0) {
...@@ -2778,6 +2780,7 @@ class phpthumb_functions { ...@@ -2778,6 +2780,7 @@ class phpthumb_functions {
} }
return str_pad($intstring, $minbytes, "\x00", STR_PAD_RIGHT); return str_pad($intstring, $minbytes, "\x00", STR_PAD_RIGHT);
} }
// http://doc.spip.org/@GD2ICOstring
function GD2ICOstring(&$gd_image_array) { function GD2ICOstring(&$gd_image_array) {
foreach ($gd_image_array as $key => $gd_image) { foreach ($gd_image_array as $key => $gd_image) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter