title: Padding in 24-bits rgb bitmap
body: <p>could somebody explain to me why in 24-bit rgb bitmap file I have to add a padding which size depends on width of image ? What for ?</p>
  
  <p>I mean I must add this code to my program (in C):</p>
  
  <pre><code> if( read % 4 != 0 ) {
     read = 4 - (read%4);
     printf( "Padding: %d bytes\n", read );
     fread( pixel, read, 1, inFile );
    }
  </code></pre>