[Top] [Prev] [Next] [Bottom]

GRreqimageil/mgrimil

intn GRreqimageil(int32 ri_id, intn interlace_mode)
ri_id

IN:

General raster image identifier returned by GRcreate or GRselect

interlace_mode

IN:

Interlace mode to be in effect during the next image operation: MFGR_INTERLACE_PIXEL (or 0), MFGR_INTERLACE_LINE (or 1), or MFGR_INTERLACE_COMPONENT (or 2)

Purpose

Sets or resets the interlace mode to be in effect during the next image read operation.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

GRreqimageil can to called anytime before the image read operation.

Example

This example illustrates the use of GRreqimageil:

     #include "hdf.h"

     int32 ri_id, stat;
     intn interlace_mode = MFGR_INTERLACE_PIXEL;
     int32 start[2], stride[2], edge[2];
     uint16 data[100];

     start[0] = start[1] = 0;
     stride[0] = stride[1] = 1;
     edge[0] = edge[1] = 10;
       ...
     stat = GRreqimageil(ri_id, interlace_mode);
     stat = GRreadimage(ri_id, start, stride, edge, data);
       ...
      
FORTRAN

integer function mgrimil(ri_id, interlace_mode)

integer ri_id, interlace_mode



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.