Function EN Version 4.50

@GetPictureFileInfo

RichText

Syntax

@GetPictureFileInfo(PICFILEHANDLE;FILETYPE);
@GetPictureFileInfo(PICFILEHANDLE;FILETYPE;FNIFD);
@GetPictureFileInfo(PICFILEHANDLE;FILETYPE;FNIFD;TEXTRETDESCRIPTION);

Description

Returns information about the contents of an image file (an image within an image file).

FILEHANDLE PICFILEHANDLE:
FILEHANDLE to an image file opened in binary mode.

FN FILETYPE:
1=TIFF File monochrom (T4 Compression in reverse bit per byte order)

FN FNIFD:
Specify the IFD position (for image 1, specify 0).
The IFD position of the next image can be determined via @GetPictureFileInfo (element 12).

TEXT TEXTRETDESCRIPTION:
If this parameter is specified, the contents of the ImageDescription field of the TIFF file are returned in it.

Return value:
On success, an image information list (FLOATLIST), otherwise @ERROR.

FLOATLIST Bild-InformationsListe:
Element   Info

3   PicLength (length of pic in pixel)
4   XRes   (XRes of pic in pixel)
5   YRes   (YRes of pic in pixel)
6   Unit   1= None 2=Inch 3=Centimeter
7   FillOrder
8   T4Options
9   StripStart
10   Page   (This Page)
11   Pages   (All Pages in File)
12   NextIFD

Example: @GetPictureFileInfo(PICFILEHANDLE;FILETYPE);

TiffFileName:="1P001.TIF";

FH:=@OpenOSFile(TiffFileName;"BR");
Ret:=@GetPictureFileInfo(FH;1);
@LogReport(Ret;3);
FH:=@CloseOSFile(FH);

The information about the contents of the image file (must be a TIFF file; see FN FILETYPE) named "1P001.TIF" is output.

Note : This text was machine-translated and may contain inaccuracies.