gijsterbeek
MIS
Hi,
Building a Bitmap Editor in Excel (which uses a colored cell for every pixel), i can now import 24-bit bitmaps into an Excel sheet. The VBA script does this:
1 read the pixels of the bitmap and put them in an array
2 stretch or shrink the array to 256 cols and enough rows to keep the aspect ratio ok.
3 reduce the palette from 16 million to only 56 colors.
4 color all the cells
The first 3 steps work fine. The problem occurs when arriving at the last step. For some reason i cannot get the interior.color property of an array of cells to be filled at once by an array which stores all the pixel color info.
Any tips?
Thanks. Gijs.
You can find this half baked editor at:
home.1asphost.com/gijsterbeek/bitmapXL.xls
Building a Bitmap Editor in Excel (which uses a colored cell for every pixel), i can now import 24-bit bitmaps into an Excel sheet. The VBA script does this:
1 read the pixels of the bitmap and put them in an array
2 stretch or shrink the array to 256 cols and enough rows to keep the aspect ratio ok.
3 reduce the palette from 16 million to only 56 colors.
4 color all the cells
The first 3 steps work fine. The problem occurs when arriving at the last step. For some reason i cannot get the interior.color property of an array of cells to be filled at once by an array which stores all the pixel color info.
Any tips?
Thanks. Gijs.
You can find this half baked editor at:
home.1asphost.com/gijsterbeek/bitmapXL.xls