Bitmaps, Sprites and Textures: Difference between revisions

→‎First part: Bitmaps, Colors And Compression: Using italics instead of bold for emphasis per style guide. Please revert if I have misunderstood.
(fix image/caption markup)
(→‎First part: Bitmaps, Colors And Compression: Using italics instead of bold for emphasis per style guide. Please revert if I have misunderstood.)
 
Line 4:
== First part: Bitmaps, Colors And Compression ==
 
A bitmap is the term for how computers see a picture. It's a grid of squares of various colors, used like a mosaic to form an image. Just open up any picture in an editing program ('''Not''' a picture ''display'' program, as those tend to "smooth" pictures when zoomed), and zoom it past 4x size, and you'll see the squares.<ref>Purists will tell you that pixels are actually ''dots'' in the center of the squares, and the squares are only ''one'' way to display them; but all other ways are outside the scope of this article.</ref>
 
So, each picture is formed of tiny squares (pixels). To make a picture file, the only information strictly necessary is the number of pixels in each dimension, and the "color" of which. Where it gets complicated is that there are several ways to do that, which affects two factors: