Table of Contents


MAGpixelWidth - returns width of `pixel' in MAG file


#include <maglo.h>
int MAGpixelWidth(MagImage *mag);


The MAGpixelWidth() function returns width of `pixel' in the MAG file that mag is associated to.

The term `pixel' represents minimum unit of data transfer and data compression in the MAG format specification. In 8- and 16-color images, a `pixel' is 4 horizontally aligned screen pixels. In 256-color images, a `pixel' is 2 horizontally aligned screen pixels.

Return Values

  1. A pixel is 2x1 in mag.
  2. A pixel is 4x1 in mag.

See Also


Table of Contents