Some helpful bmp api.