18 bool Bitmap::Load (
const std::string &name)
22 std::ifstream input(m_file_name, std::ios::binary);
28 input >> m_file_header;
31 if ( m_file_header.offset != (
size_t)0x36)
37 size_t s = m_info.size();
45 void Bitmap::process( std::string &msg,
48 auto t = Hg::make_view<Hg::rgba_t>(m_info.pixels.get());
49 auto iter = t.begin();
53 size_t length = t.end() - iter;
56 for (
size_t index = 0; iter != t.end(); ++iter, ++index)
63 bool Bitmap::Store (
const std::string &name)
65 std::ofstream output(name, std::ios::binary);
71 output << m_file_header;