рпр Posted May 11, 2004 Report Share Posted May 11, 2004 $hMazaBilde = imagecreate ($nMazaisPlatums, $nMazaisAugstums); $hPaletesBilde = imagecreatefromjpeg($this->cBildesTaka); imagetruecolortopalette($hPaletesBilde, false, 256); for ($i = 0; $i<(256); $i++) { $aKrasas = ImageColorsForIndex($hPaletesBilde, $i); ImageColorAllocate($hMazaBilde, $aKrasas['red'], $aKrasas['green'], $aKrasas['blue']); } imagedestroy($hPaletesBilde); samazinot bildi, tiek sachakareetas kraasas, meegjinaaju kraasas salikt pats, itkaa kautkas liidziigs ir arii php.net, bet man rodaas probleemas, kad izmantoju imagetruecolortopalette funkciju. itkaa kljuudu neizmet, bet arii pozitiivi rezultaati nav. Link to comment Share on other sites More sharing options...
рпр Posted May 11, 2004 Author Report Share Posted May 11, 2004 varu veel pacuksteet, ka man gd 2 or higher :) un php 4.1.2 Link to comment Share on other sites More sharing options...
Aleksejs Posted May 11, 2004 Report Share Posted May 11, 2004 atbilde: imagecreatetruecolor nevis imagecreate ;) Link to comment Share on other sites More sharing options...
рпр Posted May 12, 2004 Author Report Share Posted May 12, 2004 zelta vaardi.... Link to comment Share on other sites More sharing options...
Recommended Posts