cjard
27-01-2004, 12:56 PM
Im reading your 7 bars tutorial, and im getting it, but theres something im wondering that doesnt seem to be covered:
here is a hex representation of the bitmaps for the bars:
F7F7000000
F7F7000000
F7F7000000
F7F7000000
EFEFEF0000
EFEFEFEF00
EFEFEFEFEF
-
did you write this yourself, or use a proggie to do it? im jsut curious to know what the formula is for converting the hex into actual black and white pixels
I know that the bars appear to be 2 pixels wide for the first 4 bars (that's the F7) then the bars get fatter for the next three.. i think that they get higher too (from 4 pixels high, to 5)
so it seems that F7 somehow translates to a block of pixels, 4 high, all black
and thet EF translates to a block of pixels, 5 high, all black
I am wondering how this transformation is realised.. F7 is 1111 0111 in binary
EF is 1110 1111.. and i cant quite work out if it is something to do with this...
If the translation had been a simple hex number F, for binary 0000 1111, and that was 4 black pixels.. and 1F was 0001 1111 for the 5 black pixels, thast would have been easy to understand.. :)
so, any ideas how EF translates to a line of pixels?
here is a hex representation of the bitmaps for the bars:
F7F7000000
F7F7000000
F7F7000000
F7F7000000
EFEFEF0000
EFEFEFEF00
EFEFEFEFEF
-
did you write this yourself, or use a proggie to do it? im jsut curious to know what the formula is for converting the hex into actual black and white pixels
I know that the bars appear to be 2 pixels wide for the first 4 bars (that's the F7) then the bars get fatter for the next three.. i think that they get higher too (from 4 pixels high, to 5)
so it seems that F7 somehow translates to a block of pixels, 4 high, all black
and thet EF translates to a block of pixels, 5 high, all black
I am wondering how this transformation is realised.. F7 is 1111 0111 in binary
EF is 1110 1111.. and i cant quite work out if it is something to do with this...
If the translation had been a simple hex number F, for binary 0000 1111, and that was 4 black pixels.. and 1F was 0001 1111 for the 5 black pixels, thast would have been easy to understand.. :)
so, any ideas how EF translates to a line of pixels?