andre Posted February 26, 2004 Report Posted February 26, 2004 Kaa bildei pa virsu uzlikt mazaaku bildi ???
рпр Posted February 26, 2004 Report Posted February 26, 2004 uzinstalee php ar gd atbalstu un aidaa http://lv.php.net/manual/en/ref.image.php
Aleksejs Posted February 26, 2004 Report Posted February 26, 2004 Ar to pašu ImageCopyResized, vai resampled vai kādu citu no ImageCopy...
Klez Posted February 28, 2004 Report Posted February 28, 2004 kur un kaa to bildi vajag likt? uzliek vienu kaa BG un otru kraamee virsuu :)
Aleksejs Posted February 28, 2004 Report Posted February 28, 2004 atver abas bildes ar imgecreatefrom... Pieņemsim, ka fona bilde ir $imbg, un tā bilde, kas maziņa jādabū virsū $imgfg. Pieņemsim, ka $imbg ir 300x300px un $imgfg ir 100x100px. Pieņemsim, ka vēlies uzlikt $imgfg augšējo kreiso stūri koordinātās (100,100) samazinātu uz 50x50px Tad tev jāraksta: ImageCopyResized($imgbg,$imgfg,100,100,0,0,50,50,100,100);
Recommended Posts