In C/C++: No!
You have to make your own dimension variables:
Code:
int Width;
int Height;
You could store these first in the file.