Hi Trevor,
On Jul 21, 2006, at 12:55 PM, J. Landman Gay wrote:
I am trying to figure out how to set an image's imageData to a
repeating pattern. I have a pattern that is 8 x 8 pixels. I want
to repeat this pattern 16 times in order to fill a 32-pixel square
image.
If I repeat the pattern 4 times, I get a nice column of four
repeating patterns going down the left edge of the image. If I
repeat it 16 times I get junk. In what order are the pixels laid
down, and what determines where and when they wrap?
Jacque,
I need to experiment with this for a project I'm working on so I
worked in this handler yesterday. You just provide the long id of
a src image (the image to tile) and the destination image (the
image to perform the tiling in). I've only tested this on OS X
with Rev 2.7.x but it is working well here.
By the way, it seems that in 2.7.x that backgroundPatterns can be
any size. There is a note in the What's New.txt file that says
this is the case for graphics but I tried setting the
backgroundPattern of a field to an image that was 405 x 29 and it
appeared correctly on OS X. The pattern evens scrolls with the
field which is cool. If backgroundPatterns behave like this on
Windows as well then perhaps there is no need to roll your own
tiling handler.
just tested with a 400*220 and a 1024*768 pixel image and works very
fine on windows, too!
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution