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

Chapter 5, Making a Jigsaw Puzzle Application

Pop-Quiz – how many bits in a byte?

Answer: 8. If only for the interest of mathematicians, it's good to know that a byte is 8 bits. A "bit" is a "binary digit", and when you start to think of bits in those terms you will see that a byte can store 2 to the power of 8 values in it ("binary" being Base 2). That came into play when looking at the length of a Pascal string (2 to the power of 8 is 256, hence the range of characters in a Pascal String is 0-255), and it helps you realize that if a picture is made up of one byte for each pixel's red, green, and blue values, it's a 24-bit picture. Once you add in another byte of data for the alpha channel, you have a 32 bit picture.

Pop-Quiz – getting the big ...

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