I’d like to make up a 2D repeating pattern (for teaching crystallography) by positioning an image many times (in rows and columns) on a canvas. I can position text characters using TText without problems.
I looked at TAsimage::Tile, but I don’t see how to make it do what I want.
I’m using Version 5.27/02 on Linux.
If anyone knows how to accomplish this task, I’d appreciate some help.
However, what I want to do is slightly different: I want the image to be repeated in a single pad, and to be able to have it arranged in rows & columns that could be non-orthogonal.
You need to use several pad. The pad is filled by the image.
Do the tiling with the pads and draw the images inside.
Here is an example (in your case you should define the pads one by one at the right positions):
Not necessarily, because you can create pads at the position you want. They will be rectangular though, but pictures are rectangular anyway. In this example I used the Divide() method to quickly create pads, but in your case you should create the pads at the exact position you need (as I suggested in my previous post).