2
Reply

Translate (shift) image pixel by pixel in nested loop

Saleh Albelwi

Saleh Albelwi

Feb 3 2014 1:28 PM
999
Hello guys,
Please I would like to write a code to translate(shift) an image pixel by pixel in nested loop...
public void Translate(float tx, float ty)
{
 for(int i=0;i<mypic.width;i++)
{
   for(int j=0;j<mypic.height;j++)
   {
      // my code here
   }
 
 
 

Answers (2)