]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/man/TIFFquery.3tiff
The alignment controls are now left-aligned if the floating controls are not shown.
[wxWidgets.git] / src / tiff / man / TIFFquery.3tiff
CommitLineData
8414a40c
VZ
1.\"
2.\" Copyright (c) 1988-1997 Sam Leffler
3.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
4.\"
5.\" Permission to use, copy, modify, distribute, and sell this software and
6.\" its documentation for any purpose is hereby granted without fee, provided
7.\" that (i) the above copyright notices and this permission notice appear in
8.\" all copies of the software and related documentation, and (ii) the names of
9.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10.\" publicity relating to the software without the specific, prior written
11.\" permission of Sam Leffler and Silicon Graphics.
12.\"
13.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16.\"
17.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22.\" OF THIS SOFTWARE.
23.\"
24.if n .po 0
25.TH QUERY 3TIFF "October 29, 2004" "libtiff"
26.SH NAME
27TIFFCurrentRow,
28TIFFCurrentStrip,
29TIFFCurrentTile,
30TIFFCurrentDirectory,
31TIFFLastDirectory,
32TIFFFileno,
33TIFFFileName,
34TIFFGetMode,
35TIFFIsTiled,
36TIFFIsByteSwapped,
37TIFFIsUpSampled,
38TIFFIsMSB2LSB,
39TIFFGetVersion
40\- query routines
41.SH SYNOPSIS
42.B "#include <tiffio.h>"
43.sp
44.BI "uint32 TIFFCurrentRow(TIFF* " tif ")"
45.br
46.BI "tstrip_t TIFFCurrentStrip(TIFF* " tif ")"
47.br
48.BI "ttile_t TIFFCurrentTile(TIFF* " tif ")"
49.br
50.BI "tdir_t TIFFCurrentDirectory(TIFF* " tif ")"
51.br
52.BI "int TIFFLastDirectory(TIFF* " tif ")"
53.br
54.BI "int TIFFFileno(TIFF* " tif ")"
55.br
56.BI "char* TIFFFileName(TIFF* " tif ")"
57.br
58.BI "int TIFFGetMode(TIFF* " tif ")"
59.br
60.BI "int TIFFIsTiled(TIFF* " tif ")"
61.br
62.BI "int TIFFIsByteSwapped(TIFF* " tif ")"
63.br
64.BI "int TIFFIsUpSampled(TIFF* " tif ")"
65.br
66.BI "int TIFFIsMSB2LSB(TIFF* " tif ")"
67.br
68.BI "const char* TIFFGetVersion(void)"
69.SH DESCRIPTION
70The following routines return status information about an open
71.SM TIFF
72file.
73.PP
74.IR TIFFCurrentDirectory
75returns the index of the current directory (directories are numbered starting
76at 0). This number is suitable for use with the
77.IR TIFFSetDirectory
78routine.
79.PP
80.IR TIFFLastDirectory
81returns a non-zero value if the current directory is the last directory in the
82file; otherwise zero is returned.
83.PP
84.IR TIFFCurrentRow ,
85.IR TIFFCurrentStrip ,
86and
87.IR TIFFCurrentTile ,
88return the current row, strip, and tile, respectively, that is being read or
89written. These values are updated each time a read or write is done.
90.PP
91.IR TIFFFileno
92returns the underlying file descriptor used to access the
93.SM TIFF
94image in the filesystem.
95.PP
96.IR TIFFFileName
97returns the pathname argument passed to
98.IR TIFFOpen
99or
100.IR TIFFFdOpen .
101.PP
102.IR TIFFGetMode
103returns the mode with which the underlying file was opened. On
104.SM UNIX
105systems, this is the value passed to the
106.IR open (2)
107system call.
108.PP
109.IR TIFFIsTiled
110returns a non-zero value if the image data has a tiled organization. Zero is
111returned if the image data is organized in strips.
112.PP
113.IR TIFFIsByteSwapped
114returns a non-zero value if the image data was in a different byte-order than
115the host machine. Zero is returned if the TIFF file and local host byte-orders
116are the same. Note that TIFFReadTile(), TIFFReadStrip() and
117TIFFReadScanline() functions already normally perform byte swapping to local
118host order if needed.
119.PP
120.I TIFFIsUpSampled
121returns a non-zero value if image data returned through the read interface
122routines is being up-sampled. This can be useful to applications that want to
123calculate I/O buffer sizes to reflect this usage (though the usual strip and
124tile size routines already do this).
125.PP
126.I TIFFIsMSB2LSB
127returns a non-zero value if the image data is being returned with bit 0 as the
128most significant bit.
129.PP
130.IR TIFFGetVersion
131returns an
132.SM ASCII
133string that has a version stamp for the
134.SM TIFF
135library software.
136.SH DIAGNOSTICS
137None.
138.SH "SEE ALSO"
139.IR libtiff (3TIFF),
140.IR TIFFOpen (3TIFF),
141.IR TIFFFdOpen (3TIFF)