Obtaining the width and height of a raster