Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() i'm trying to get the data out of a monochrome bmp file which has one bit per pixel. I can read the byte containing 8 consecutive pixels but I'm getting tied in knots trying to find the most efficient way of reading the individual bits into an array. Grateful for advice |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This might give you some hints: http://support.microsoft.com/default.aspx/kb/113476 HTH, Eric "simonc" wrote: i'm trying to get the data out of a monochrome bmp file which has one bit per pixel. I can read the byte containing 8 consecutive pixels but I'm getting tied in knots trying to find the most efficient way of reading the individual bits into an array. Grateful for advice |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for this. It turns out And is the key. To extract the eight bits of a byte I used for i = 0 to 7 bit(i) = byte And 2^i next "EricG" wrote: This might give you some hints: http://support.microsoft.com/default.aspx/kb/113476 HTH, Eric "simonc" wrote: i'm trying to get the data out of a monochrome bmp file which has one bit per pixel. I can read the byte containing 8 consecutive pixels but I'm getting tied in knots trying to find the most efficient way of reading the individual bits into an array. Grateful for advice |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() And here is another one: http://support.microsoft.com/kb/185554 "simonc" wrote: i'm trying to get the data out of a monochrome bmp file which has one bit per pixel. I can read the byte containing 8 consecutive pixels but I'm getting tied in knots trying to find the most efficient way of reading the individual bits into an array. Grateful for advice |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() What kind of array are you trying to put it into and how many dimensions does the array have, one or two (if one, how is the data laid out, column first or row first)? -- Rick (MVP - Excel) "simonc" wrote in message ... i'm trying to get the data out of a monochrome bmp file which has one bit per pixel. I can read the byte containing 8 consecutive pixels but I'm getting tied in knots trying to find the most efficient way of reading the individual bits into an array. Grateful for advice |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
3 bits of data | Excel Discussion (Misc queries) | |||
How to match bits to a certain value | Excel Worksheet Functions | |||
Extracting Comma Seperated data into individual Cells | Excel Discussion (Misc queries) | |||
BIN2DEC bits 0-5 then 6-15 | Excel Worksheet Functions | |||
Manipulating bits | Excel Programming |