|
Purpose
|
Writes a 24-bit image to the specified file. |
|
Return value
|
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise. |
|
Description
|
DF24addimage appends a 24-bit raster image set to the file. Array image is assumed to be width x height x 3 bytes. In FORTRAN-77, the dimensions of the array image must be the same as the dimensions of the image data. |
|
|
The order in which dimensions are declared is different between C and FORTRAN-77. Ordering varies because FORTRAN-77 arrays are stored in column-major order, while C arrays are stored in row-major order. (Row-major order implies that the last coordinate varies fastest). |
|
|
When DF24addimage writes an image to a file, it assumes row-major order. The FORTRAN-77 declaration that causes an image to be stored in this way must have the width as its first dimension and the height as its second dimension. In other words, the image must be built "on its side". |