Imagedata row order
Rob Cozens
rcozens at pon.net
Sat Jul 22 10:47:01 EDT 2006
Jacqui, et al:
>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?
Set the text of the image to your 32-pixel square. The imageData,
height, and width will be reset based on the new content.
--
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list