Saleh Albelwi

Saleh Albelwi

  • NA
  • 1
  • 1.4k

Translate (shift) image pixel by pixel in nested loop

Feb 3 2014 1:28 PM
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)