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
{
for(int j=0;j
{
// my code here
}
}
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
maher fadiPosted Feb 27, 2014, 3:23 AM
If you are interested in using a commercial SDK, take a look at leadtools, it has a function to shift the data of an image. Here is a link that might be useful:
http://www.leadtools.com/help/leadtools/v18/dh/pe/leadtools.imageprocessing.effects~leadtools.imageprocessing.effects.offsetcommand.htmlFroglegPosted Feb 4, 2014, 3:12 AM
It would be easier to redraw the image in the new location