#include <maglo.h> int MAGReader(MagImage *mag, MagReader *rd);
MAGReader() initializes MagReader at pre-allocated storage rd against a MAG file to which mag is associated.
Call MAGReaderNextPixel function with rd initialized with this function to retreive image data.
After reading all the data from a image, MAGReaderDelete should be called to return unused resources to system.
On successful completion MAGReader function returns MAGERR_NOERROR. Otherwise one of following error codes is returned: