if the progress bar has the height - 9 pixels, then in reality (not preview), immediately followed by moves 9X8 pixel rectangle with background color (which is the first in the palette (the palette of colors for the progress bar and background image must be the same)...
Length of run progress bar is calculated as the distance from the extreme left point to the extreme right (if with the width of the progress bar at 22 pixels)
-That in fact, almost everything. ..