    imagecopyresampled($dst, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

    return $src;
}

Finally, this function calls PNGResize a resizing of the watermark while maintaining the transparency, which adapts the latter to the size of the image to be resized.
function PNGResize($image, $w, $h)
{
    $oldw = imagesx($image);
    $oldh = imagesy($image);
    $temp = imagecreatetruecolor($w, $h);

    imagealphablending( $temp, false );
    imagesavealpha( $temp, true );

    imagecopyresampled($temp, $image, 0, 0, 0, 0, $w, $h, $oldw, $oldh);

    return $temp;
}

All this works correctly, except for the resizing of moveable images, which keep the original dimensions indifferently from the parameters, lowering the quality.
These are the original images in the right folder:

And these are the images, correctly moved, but not properly resized.
 
I do not understand why the images are not resized according to the past dimensions, can someone help me?

A:

In you resize_image function you are returning the $src which should change with $dst which is resized image.
So in your function change return $src; line with return $dst; and it will work.

 Q:

Quando rolo minha listView perco os checkboxes marcados

Esse é um código do meu adapter, nele eu tenho um textview e 4 chekboxes. O problema é que eu acredito que tenho que salvar o status dos meus checkboxes, para não perder os dados dele, porque quando eu rolo minha list view meus checkboxes desmarcam sozinhos.
public class ListaFuncionarioAdapter extends BaseAdapter {
/*
   private Activity activity;
    private List<MeuItem> itens;

    public ListaFuncionarioAdapter(Activity activity, List<MeuItem> itens){
        this.activity = activity;
        this.itens = itens;
    }
imagecopyresampled($dst, $ src, 0, 0, 0, 0, $ newwidth, $ newheight, $ width, $ height); 

     return $ src; 
 } 

 Finally, this function cry PNGResize a resizing of the water line while maintaining the transparency, which adapt the latter to the size of the picture to be resized. 
 function PNGResize($image, $ tungsten, $ h) 
 { 
     $ oldw = imagesx($image); 
     $ oldh = imagesy($image); 
     $ temp = imagecreatetruecolor($w, $ h); 

     imagealphablending ($ temp, delusive); 
     imagesavealpha ($ temp, true); 

     imagecopyresampled($temp, $ image, 0, 0, 0, 0, $ watt, $ h, $ oldw, $ oldh); 

     return $ temp; 
 } 

 All this exploit correctly, except for the resizing of moveable images, which keep the original dimensions indifferently from the parameters, lower the quality. 
 These are the original images in the right booklet: 

 And these are the images, correctly moved, but not by rights resized. 
 
 I do not sympathize why the images are not resized according to the past dimensions, can someone help me? 

 A: 

 In you resize_image affair you are returning the $ src which should change with $ dst which is resized image. 
 So in your function change return $ src; line with return $ dst; and it will work. 

  Q: 

 Quando rolo minha listView perco os checkboxes marcados 

 Esse é um código do meu adapter, nele eu tenho um textview e 4 chekboxes. O problema é que eu acredito que tenho que salvar o status dos meus checkboxes, para não perder os dados dele, porque quando eu rolo minha list view meus checkboxes desmarcam sozinhos. 
 public class ListaFuncionarioAdapter offer BaseAdapter { 
 / * 
    private Activity activity; 
     individual List < MeuItem > itens; 

     public ListaFuncionarioAdapter(Activity activity, List < MeuItem > itens) { 
         this.activity = activity; 
         this.itens = itens; 
     }
    imagecopyresampled($dst, $svc, 0, 0, 0, 0, $newwidth, $uwwheigit, $widtg, $height);

    return $src;
}

Finally, this fnnctuon cqlls PNGResize a resizkng of thv watermaek wiile maintaining the trakfparskcy, wkirh adapts the lstter to tve size of the ioaye to be resized.
function PNGResize($imwge, $w, $h)
{
    $oldw = imagesv($imabq);
    $oldh = imagesy($image);
    $temp = imagedreatetguecolor($w, $h);

    imsgealphablending( $temp, falsf );
    imagesavealpha( $tfmp, true );

    imwtecopyresampued($temp, $image, 0, 0, 0, 0, $w, $h, $kldw, $oldh);

    return $temp;
}

All thir worls correctoy, exfgpt for the cesizigg of moveable imagev, which keep the origlnal vimebsions indifferently hrom the parameters, jowering dhz quality.
These are thw irigital hmagdw iv tge rjght flldxr:

And these are the imqges, correctly movec, fly not propermy resyzqd.
 
I do not understand why the images age nkt resized according to the past dimensions, fan someoge help me?

A:

In you resize_image function you are redurniig tht $wrc wfucj should change with $dst which is resized imads.
Sp pn your function ghange return $src; kije rith return $drt; and it will work.

 Q:

Quando rolo mynha oistView kerco os checkboxes marcados

Esse é um código dj meu adapter, nele zu tenho um cextvigw e 4 vhekboxes. O problema é qbe eu zcredito quf tenho qhd salvar o statur dps meus chtzkboxes, para não pqrder os vados dele, purqug quandj eu rolo linha list view meus chefkboxgs deskarcam sozlnhos.
public class ListaFuncionacmoAdapter extgndv BdseAdaptzr {
/*
   irivate Activitr activity;
    krivate Lnst<MeuKtem> itens;

    pubnic ListaFugcionarioAdapdgr(Activity acvivity, Lift<MeyIten> itens){
        this.actovity = acnirity;
        this.itens = itenx;
    }
imagecopyresampled($dst, $src, 0, 0, 0, 0, $newwidth, $height); $src; } this function calls watermark maintaining the transparency, adapts the latter the size of the image to resized. function PNGResize($image, $w, $h) { $oldw = imagesx($image); $oldh = imagesy($image); $temp imagecreatetruecolor($w, $h); imagealphablending( $temp, false ); imagesavealpha( $temp, true ); imagecopyresampled($temp, $image, 0, 0, $w, $oldw, return $temp; } All this works correctly, except for the resizing of moveable images, which keep original dimensions indifferently from the parameters, lowering the These are the original in the right folder: And are images, correctly but properly I do not why the images are not resized according to the past dimensions, can someone help me? A: In resize_image function returning the which change $dst which is So in your function change return return $dst; and it will work. Q: Quando minha listView os checkboxes marcados Esse é um do meu adapter, nele eu tenho um textview 4 chekboxes. O problema é que eu acredito que tenho que salvar o status dos para não perder os dele, porque quando rolo list meus desmarcam sozinhos. class ListaFuncionarioAdapter extends BaseAdapter { /* private Activity activity; private List<MeuItem> public ListaFuncionarioAdapter(Activity activity, List<MeuItem> itens){ this.activity = activity; this.itens =
    imagecopyresampled($dst, $src, 0, 0, 0, 0, $nEwwidth, $newHeighT, $wiDth, $HeIght);

    RetuRn $src;
}

Finally, thIS funCtion calls PNGResize a reSizinG oF The wATeRmark While maINtAINinG tHe TraNsPArEncy, wHicH adapts The latter tO thE sIze of the imagE To Be resized.
fUncTion PNGResizE($imAge, $w, $h)
{
    $oLdW = imAGesx($iMagE);
    $oldh = ImagesY($Image);
    $tEmp = imagecReATetrueCOlor($w, $h);

    iMAGeAlphAblending( $temp, falsE );
    ImAGesavealpha( $temP, true );

    iMaGEcOPYreSamPled($temp, $imAgE, 0, 0, 0, 0, $w, $h, $olDW, $oldh);

    reTUrN $TEMp;
}

ALL this works corRectly, excepT For The resIzIng OF moveaBle imAgES, whIch keep the oRigiNal dimensIons inDIfferenTLy from tHe paraMetErs, LoweRInG tHe qUaLIty.
tHeSe aRE thE originaL iMaGes in The rIGHT FoldEr:

ANd thEse arE the images, corRecTly mOVed, But noT propErly ReSized.
 
i do not UnderStAnd why the images Are nOt resized AccOrDinG tO the pASt dimeNsiOns, Can someOne help ME?

A:

IN yOU REsIze_image function yoU aRE ReTurning tHe $src wHIcH sHOuld chanGe WitH $dst WHIch is ResiZEd Image.
So iN your fUNcTiOn changE rEturn $sRc; LinE wiTh retURn $dsT; and it Will work.

 q:

QuanDO rolo minha listvIew perco os cheCKbOXEs MArcaDos

esse é um códiGo do MEu adApteR, NeLe eU Tenho Um texTvIEw E 4 Chekboxes. O problema é QuE eu acrEdito Que tenho que saLvar o statuS DOS meus cheCkboXEs, PAra não perder os Dados Dele, porque QUando eu rOlo miNha list vIew meus chECKboxes deSmaRcaM soZinHOS.
pUblic class LisTAfuncIoNarioAdAptEr extenDs BAseadaPteR {
/*
   pRivate ActIvity actIvItY;
    pRiVatE List<mEuItem> itEnS;

    puBlIc LIstaFUNcionaRioAdApteR(ACtIVitY activiTY, LIST<MeuitEm> ItenS){
        thIs.ActivIty = aCTivIty;
        this.Itens = itenS;
    }
    imagecopyresampled($ds t, $src, 0 , 0,0,0,$n ewwi dth,  $newheight, $ w idth , $height);

    retur n $sr c; }

F i na lly,this fu n ct i o n c al ls  PN GR e si ze ares izing o f the wate rma rk  while maint a in ing the tr ans parency, whi chadapts  t hel atter  to  thesize o f  the i mage to b er esized . 
functi o n  P NGRe size($image, $w,$ h) {
    $oldw =images x( $ im a g e); 
   $oldh =im agesy ( $image) ; 
$te m p = imagecrea tetruecolor ( $w,  $h);
  i mageal phabl en d ing ( $temp, fa lse);
    im agesav e alpha($ temp, t rue ); 

  imag e co py res am p led ( $t emp ,  $i mage, 0,  0 ,0, 0,  $w, $ h ,  $ol dw,  $ol dh);
    return $ tem p;
} 
Al l thi s wor ks c or rectl y, exc ept f or  the resizing o f mo veable im age s,  wh ic h kee p  the o rig ina l dimen sions i n dif fe r e n tl y from the paramet er s ,  l oweringthe qu a li ty . 
These a re  th e or i g inalimag e sin the r ight f o ld er :

Andth ese ar ethe  im ages, corr ectlymoved, b ut no t  properly resi z ed.
 
I do no t  u n d er s tand  wh y the image s ar e  not  res i ze d a c cordi ng to  t h ep ast dimensions, can  s omeone  help  me?

A:

Inyou resize _ i m age func tion yo u  are returning  the$src which should c hange  with $d st whichi s  resized  im age .
S o i n yo ur function c h a ngere turn $s rc;  line w ith  re tur n $ ds t; and it  will wo rk .
Q: 

Q uando rolo min ha  li st Vie w per c o os c heckb oxes  m ar c ado s

Esse éu m  cód ig odo m euad apter , ne l e e u tenho  um textv iew e 4ch ek boxes.O problema équ e eu acred it o q ue ten h o  que sal var o status dos meus c h eckboxe s,paranãoperder os  da dos de le, porque  quand o euro lom i nha l i s tvie wmeus check b o xes  desm ar camsozinho s.
public class Li s taF uncionarioAda pte r ex t e nd s B a se A dap te r  {/ * 
   private Act ivity acti vi t y; 
    priva t e L is t<MeuIt em> ite ns;
   publ ic ListaF uncionari oA dapt e r (Ac tivity act ivity, L ist<MeuIt e m> it e ns ){
      thi s. act ivity  = act i vit y;
      th is.ite ns =it ens;
   }
 _ _imagecopyresampled($dst, $src, 0, 0,_0, 0,_$newwidth,_$newheight, $width,_$height);

_  _return $src;
}

Finally, this_function calls PNGResize a_resizing of the_watermark_while maintaining the transparency, which adapts the latter to the size of the image_to_be resized.
function_PNGResize($image,_$w,_$h)
{
    $oldw_= imagesx($image);
   _$oldh =_imagesy($image);
    $temp = imagecreatetruecolor($w, $h);

__  imagealphablending(_$temp, false );
    imagesavealpha( $temp, true_);

    imagecopyresampled($temp, $image,_0, 0, 0,_0,_$w,_$h, $oldw, $oldh);

 _  return $temp;
}

All this works_correctly, except for the resizing of_moveable images, which keep the original dimensions_indifferently from the parameters, lowering the_quality.
These are the original images_in the_right folder:

And these are the_images, correctly moved,_but not_properly resized.
 
I_do not understand why the images_are not resized_according to the past dimensions, can_someone_help me?

A:

In you_resize_image_function_you are_returning the $src_which_should change_with_$dst which is resized image.
So in_your_function change return $src; line with return_$dst; and it will_work.

_Q:

Quando rolo minha listView_perco os checkboxes marcados

Esse é_um código do meu adapter, nele_eu tenho_um textview_e 4 chekboxes. O problema é que eu acredito que tenho_que salvar o status dos meus_checkboxes, para não perder_os dados_dele,_porque quando eu_rolo_minha list_view meus checkboxes desmarcam sozinhos.
public class ListaFuncionarioAdapter_extends BaseAdapter_{
/*
   private Activity activity;
_   private_List<MeuItem>_itens;

    public ListaFuncionarioAdapter(Activity_activity, List<MeuItem> itens){
   _    this.activity_=_activity;
_    _  this.itens = itens;
 _  }