reverse the bitmap data then get ids