TIFFGETFIELD(3tiff) LibTIFF TIFFGETFIELD(3tiff)
NAME
TIFFGetField - get the value(s) of a tag in an open TIFF file
SYNOPSIS
#include <tiffio.h>
#include <stdarg.h>
int TIFFGetField(TIFF *tif, ttag_t tag, ...)
int TIFFVGetField(TIFF *tif, ttag_t tag, va_list ap)
int TIFFGetFieldDefaulted(TIFF *tif, ttag_t tag, ...)
int TIFFVGetFieldDefaulted(TIFF *tif, ttag_t tag, va_list ap)
DESCRIPTION
TIFFGetField() returns the value of a tag or pseudo-tag associated with
the the current directory of the opened TIFF file tif. (A pseudo-tag
is a parameter that is used to control the operation of the TIFF li-
brary but whose value is not read or written to the underlying file.)
The file must have been previously opened with TIFFOpen(). The tag is
identified by tag, one of the values defined in the include file tiff.h
(see also the table below). The type and number of values returned is
dependent on the tag being requested. The programming interface uses a
variable argument list as prescribed by the stdarg.h interface. The re-
turned values should only be interpreted if TIFFGetField() returns 1.
TIFFVGetField() is functionally equivalent to TIFFGetField() except
that it takes a pointer to a variable argument list. TIFFVGetField()
is useful for layering interfaces on top of the functionality provided
by TIFFGetField().
TIFFGetFieldDefaulted() and TIFFVGetFieldDefaulted() are identical to
TIFFGetField() and TIFFVGetField(), respectively, except that if a tag
is not defined in the current directory and it has a default value,
then the default value is returned.
The tags understood by libtiff the number of parameter values, and the
types for the returned values are shown below. The data types are spec-
ified as in C and correspond to the types used to specify tag values to
TIFFSetField(). Remember that TIFFGetField() returns parameter values,
so all the listed data types are pointers to storage where values
should be returned. Consult the TIFF specification (or relevant indus-
try specification) for information on the meaning of each tag and their
possible values.
TAG PROPERTIES
4.5 Jan 03, 2025 TIFFGETFIELD(3tiff)
Czas wygenerowania: 0.00031 sek.
Created with the man page lookup class by Andrew Collington.
Based on a C man page viewer by Vadim Pavlov
Unicode soft-hyphen fix (as used by RedHat) by Dan Edwards
Some optimisations by Eli Argon
Caching idea and code contribution by James Richardson
Copyright © 2003-2025 Linux.pl
Hosted by Hosting Linux.pl