Jump to content

Image zoom


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...