GINO Graphics Suite - GINO v9.0  

gEnqImageFile

Syntax

[C/C++:]
void gEnqImageFile(char file[], int *type, int *ixgrid, int *iygrid, int *nbpp, int *ncols);
[F90:]
subroutine gEnqImageFile(file, type, ixgrid, iygrid, nbpp, ncols)

character*(*), intent(in) :: file
integer, intent(out) :: type,ixgrid,iygrid,nbpp,ncols

Arguments

file
Image file name

type
Image type

= 0, Unknown image file type
= GBMPFILE, Uncompressed Windows Bitmap file (BMP)
= GXWDFILE, X Windows Dump format (XWD)
= GICOFILE, Windows Icon file (ICO)
= GJPEGFILE, JPEG image format (JPG)
= GPNGFILE, Portable Network Graphics file (PNG)

ixgrid
Image width in pixels

iygrid
Image height in pixels

nbpp
Number of bits per pixel

ncols
Number of colours in image file colour table

Description

The routine gEnqImageFile() can be used to interrogate an image file to determine the image type and a number of its attributes prior to reading in the image file itself.

Five image file types are recognised by this routine (matching those that can be interpreted by the routine gGetImageFile()) and the attributes returned are as described above.

See Also

gEnqImageFile Usage
gGetImageFile