Table of Contents

Name

MAGpixelWidth - returns width of `pixel' in MAG file

Synopsis


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

Description

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

libmaglo(7)


Table of Contents