You are here: The C API > Image Support

Image Support

The functions for opening and closing existing MrSID, JPEG 2000 and NITF images are:

These functions all take either a filename or a stream, denoting the input, and a pointer to an “image handle” of type LTICImageH. This handle is used to provide the context for all other functions in the C API. Returned status codes are used to indicate success or failure.

To close an image, the ltic_closeImage() function is used.

Due to rounding and file format differences, you should not manually calculate the image dimensions at magnification. Instead, you should use the ltic_getDimsAtMag() function to ask the SDK for the dimensions of the image at a given magnification.

Basic image properties such as width, height, colorspace, geospatial position, etc, are accessed using simple query functions. For example, the width of an image is determined by calling this function:

lt_int32 ltic_getWidth(const LTICImageH image)