how can I get a BMP's width and height threw API?