2
Answers

Translate (shift) image pixel by pixel in nested loop

Photo of Saleh Albelwi

Saleh Albelwi

11y
1.5k
1
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)