#include <maglo.h> int MAGimageWidth(MagImage *mag); int MAGimageHeight(MagImage *mag); int MAGimageStartX(MagImage *mag); int MAGimageStartY(MagImage *mag); int MAGimageEndX(MagImage *mag); int MAGimageEndY(MagImage *mag);
MAGimageWidth, MAGimageHeight, MAGimageStartX, MAGimageStartY, MAGimageEndX and MAGimageEndY functions return boundary information stored in the MAG file that mag is associated to.
MAGimageWidth() and MAGimageHeight() returns width and height of image respectively.
Some MAG image encoder supported saving a part of framebuffer. The values returned by MAGimageStartX() and MAGimageStartY() can be used to determine the start point at which to draw decoded image. A MAG decoder can ignore these information.
The MAGimageWidth() and MAGimageHeight() functions return width and height of mag in screen pixels(dots).
The MAGimageStartX, MAGimageStartY, MAGimageEndX and MAGimageEndY functions return X or Y coordinate corresponds to each point in screen pixels(dots).