O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – testing a getPixel function

Before getting to useful examples, let's make a getPixel function, and a quick test case.

  1. Make a new Mainstack. Save it as ImageDataTests.

    Note

    We'll use the same stack to illustrate several things, and at the end we may dare to try it on a mobile device!

  2. Make the stack of the size of your largest test device. Or just try 1024x768 if you'll use the iPad Simulator.
  3. From the File menu, choose Import as Control/Image, and select any small image file you have, to place it in the upper left-hand side corner of the card window. The example shown below uses a LiveCode logo image.
  4. Place a new Graphic object next to the image. It's going to be showing a single color, so just make it big enough to easily see the color. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required