Patterns on Mac/PC

Kevin Miller kevin at runrev.com
Mon Mar 4 07:14:01 EST 2002


On 1/3/02 3:19 am, JohnRule at aol.com <JohnRule at aol.com> wrote:

> I am just curious about the difference between the way patterns are handled
> between a PC and a Mac. For instance:
> 
> I can import a pattern into my PC stack, assign this same pattern to several
> buttons (stacked on top of each other) with the patterns starting at 0,0,
> coordinates in each button (i.e. the pattern is redrawn for each button with
> the upper left corner starting at the upper left corner of the button).
> 
> If I then transfer this stack to a Macintosh, the buttons represent the
> pattern as if the pattern were the size of the stack (or screen). In other
> words, the pattern is reflected differently in every button on the Mac (the
> pattern is not redrawn at a 0,0, coordinate for each button).
> 
> I know patterns are 'natively' different on each platform, but this is odd
> (and I would think this is wrong).
> 
> Can anyone verify/explain this?

>From the docs:

Pattern images can be color or black-and-white. To be used on Mac OS
systems, patterns must be 128x128 pixels or less, and both its height and
width must be a power of 2. To be used on Windows and Unix systems, height
and width must be divisible by 8.

Does that explain it?

Kevin

Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.



More information about the use-livecode mailing list