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