test bitmap code