Miagiste Posted May 20, 2010 Share Posted May 20, 2010 Salut comment zoomer sur une image, On a 2 boutons, quand on clique il rentre bien dans le onClick, mais le zoom n'a pas lieu //Clic sur le zoom plus ((Button)this.findViewById(R.id.btzoomplus)).setOnClickListener(new OnClickListener() { public void onClick(View v) { //facteur d'agrandissement img.getImageMatrix().postScale( zoomfactor, zoomfactor, 0, 0); } }); //Clic sur le zoom moins ((Button)this.findViewById(R.id.btzoommoins)).setOnClickListener(new OnClickListener() { public void onClick(View v) { img.getImageMatrix().postScale( 1/zoomfactor, 1/zoomfactor, 0, 0); } }); Quelqu'un à une autre solution peut être ? Merci Link to comment Share on other sites More sharing options...
xau Posted May 20, 2010 Share Posted May 20, 2010 Sujet déplacé dans la section développement. Merci de poster dans la bonne section la prochaine fois. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.