src = $sursa; $this->img = $this->loadImage(); if($this->img) $this->color = @imagecolorallocate($this->img, 255, 255, 255); } function save($dest,$c=100) { if($this->imgtype == 1) imagegif($this->InternalImage,$dest); if($this->imgtype == 2) imagejpeg($this->InternalImage,$dest,$c); if($this->imgtype == 3) imagepng($this->InternalImage,$dest); } function setColor($r=255,$g=255,$b=255) { return $this->color = imagecolorallocate($this->img, $r, $g, $b); } function loadImage() { if(file_exists($this->src)) { $data = getimagesize($this->src); //[0] = w, [1] = h, [2] = type, [3] = attr $this->w = $data[0]; $this->h = $data[1]; switch ($data[2]) { case 1: $this->imgtype = 1; $tmp_image = @imagecreatefromgif($this->src); break; case 2: $this->imgtype = 2; $tmp_image = @imagecreatefromjpeg($this->src); break; case 3: $this->imgtype = 3; $tmp_image = @imagecreatefrompng($this->src); break; default: $this->Err = 'Fisierul nu este imagine!'; return false; exit; break; } return $tmp_image; }else{ $this->Err = 'Fisierul nu exista!'; return false; } } function resize($nw='auto',$nh='auto',$stretch=false,$enlarge = false) { if($nw == 'auto' && $nh == 'auto') { $nw = $this->w; $nh = $this->h; }else{ if($nw == 'auto') { $nw = ( $this->w * $nh )/ $this->h; } if($nh == 'auto') { $nh = ( $this->h * $nw )/ $this->w; } } // setam dimensiunile initiale ale imaginii $fw = $nw; $fh = $nh; // daca nu se doreste distorsionarea imaginii if($stretch === false) { // verificam mai intai dupa inaltime -> nw constanta! $nh_ = ( $this->h * $nw )/ $this->w; // daca $nh_ este mai mare, atunci se modifica nw -> nh = constant! if($nh_ > $nh) { $fw = ( $this->w * $nh )/ $this->h; $fh = $nh; }else{ $fw = $nw; $fh = ( $this->h * $nw )/ $this->w; } } // daca imaginea este mai mica, se mareste sau nu? if($enlarge === false) { if($this->w < $fw && $this->h < $fh) { $fw = $this->w; $fh = $this->h; } } $tmp=imagecreatetruecolor($fw,$fh); // copiem imaginea originala in $tmp -> se face resize if(imagecopyresampled($tmp,$this->img,0,0,0,0,$fw,$fh,$this->w,$this->h)) { $this->InternalImage = $tmp; return $this; }else{ $this->Err = 'Redimensionare nereusita!'; return false; } } function smartcrop($nw,$nh) { $r = $this->w / $this->h; $nr = $nw / $nh; $fw = $nw; $fh = $nh; if($r > $nr) { $this->resize('auto',$nh); $fw = ( $this->w * $nh ) / $this->h; }else{ if($r < $nr) { $this->resize($nw); $fh = ( $this->h * $nw ) / $this->w; }else{ return $this->resize($nw,$nh); } } $tmp = imagecreatetruecolor($nw,$nh); $x = ( $fw - $nw ) / 2; $y = ( $fh - $nh ) / 2; if(imagecopyresampled($tmp, $this->InternalImage, 0, 0, $x, $y, $nw, $nh, $nw, $nh)) { $this->InternalImage = $tmp; return $this; }else{ $this->Err = 'Redimensionare nereusita!'; return false; } } function justcrop($x,$y,$nw,$nh) { $tmp = imagecreatetruecolor($nw,$nh); if(imagecopyresampled($tmp, $this->img, 0, 0, $x, $y, $nw, $nh, $nw, $nh)) { $this->InternalImage = $tmp; return $this; }else{ $this->Err = 'Redimensionare nereusita!'; return false; } } function addtext($text,$size=12,$angle = 0, $x=5, $y=5,$fontfile='engine/resource/fonts/verdana.ttf') { $fx = $x; $fy = $y + $size; imagettftext ($this->InternalImage,$size,$angle,$fx,$fy,$this->color,$fontfile,$text); return $this; } function watermark($wstring,$part='CENTER') { $watermark = imagecreatefrompng($wstring); $ww = imagesx($watermark); $wh = imagesy($watermark); $iw = imagesx($this->InternalImage); $ih = imagesy($this->InternalImage); // watermark position switch($part) { case 'CENTER': $x = ( $iw - $ww ) / 2; $y = ( $ih - $wh ) / 2; break; case 'TOPLEFT': $x = 5; $y = 5; break; case 'TOPRIGHT': $x = $iw - $ww - 5; $y = 5; break; case 'BOTTOMLEFT': $x = 5; $y = $ih - $wh - 5; break; case 'BOTTOMRIGHT': $x = $iw - $ww - 5; $y = $ih - $wh - 5; break; default: return false; } imagecopymerge($this->InternalImage, $watermark, $x, $y, 0, 0, $ww, $wh, 50); return $this; } function display($c=100) { /* header("Content-type: image/jpeg"); imagejpeg($this->InternalImage); */ ob_start(); imagejpeg($this->InternalImage, "", 100); $this->InternalImage = ob_get_contents(); ob_end_clean(); $this->InternalImage = substr_replace($this->InternalImage, pack("Cnn", 0x01, 300, 300), 13, 5); header("Content-type: image/jpeg"); echo $this->InternalImage; } function showErr() { echo $this->Err; } } ?> Agacee - Wassup (Prod. By The University) // Free Song @ HDMixtapes.com
Home > New Singles > Agacee
Plays: 404 Downloads: 57

Rating:   

Genre: Hip Hop/Rap Released: Jul 19, 2012 Runtime: 03:22 Size: 7.8 MBs


Agacee | Wassup (Prod. By The University)
Name
Artist
Time
Rating
Wassup (Prod. By The University)
Agacee
03:22



Lil Durk They Forgot

Lil Uzi Vert, Gucci Mane 1017 vs The World

Fetty Wap Zoovier

Nick Cannon The Gospel Of Ike Tu...