Posted: Wed Mar 21, 2007 9:16 pm Post subject: Stitching Images Project
Hello!
Its been a while since ive been on here but thease forums always helped me in class so I thought id give them a try at home!
I have 100 images numbered 1 - 100. Thease images line up when you arrange them in a 10 x 10 grid. I dont mind importing them individually into a variable but im just a little stumped on what command is the easiest to use in this situation. Anyone come across how to line things up perfectly in a grid?
P.S. the images are PNG and they are 420x420
-using Turing 4.0.4c
-experienced user
Sponsor Sponsor
Cervantes
Posted: Thu Mar 22, 2007 11:08 am Post subject: RE:Stitching Images Project
Hi mikepatt.
There's no functions provided to stich images together. You'll have to do that work yourself. The reason that no such function is provided is because this task is very specific. What if you didn't have square pictures, or what if you wanted to arrange them column by column instead of row by row?
Getting this to work is not that difficult, though. I would recommend using two for loops, each from 0 to 9, nested.
code:
var edgeSize := 420
for x : 0 .. 9
for y : 0 .. 9
%Draw picture (x * 10 + y) at pos (x * edgeSize, y * edgeSize)
end for
end for
I hope this helps. I may have misinterpreted your question, though, so let me know if you're looking for something else/further.