roentgen b75cab
.\" $Id: TIFFDataWidth.3tiff,v 1.3 2006-03-23 14:54:02 dron Exp $
roentgen b75cab
.\"
roentgen b75cab
.\" Copyright (c) 2002, Andrey Kiselev <dron@ak4719.spb.edu></dron@ak4719.spb.edu>
roentgen b75cab
.\"
roentgen b75cab
.\" Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
.\" its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
.\" that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
.\" all copies of the software and related documentation, and (ii) the names of
roentgen b75cab
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
.\" publicity relating to the software without the specific, prior written
roentgen b75cab
.\" permission of Sam Leffler and Silicon Graphics.
roentgen b75cab
.\" 
roentgen b75cab
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
.\" 
roentgen b75cab
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
roentgen b75cab
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
.\" OF THIS SOFTWARE.
roentgen b75cab
.\"
roentgen b75cab
.if n .po 0
roentgen b75cab
.TH TIFFDataWidth 3TIFF "September 12, 2002" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
TIFFDataWidth \- Get the size of TIFF data types
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B "#include <tiffio.h>"</tiffio.h>
roentgen b75cab
.sp
roentgen b75cab
.BI "int TIFFDataWidth(TIFFDataType " type ")"
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I TIFFDataWidth
roentgen b75cab
returns a size of
roentgen b75cab
.I type
roentgen b75cab
in bytes.
roentgen b75cab
Currently following data types are supported:
roentgen b75cab
.br
roentgen b75cab
.I TIFF_BYTE
roentgen b75cab
.br
roentgen b75cab
.I TIFF_ASCII
roentgen b75cab
.br
roentgen b75cab
.I TIFF_SBYTE
roentgen b75cab
.br
roentgen b75cab
.I TIFF_UNDEFINED
roentgen b75cab
.br
roentgen b75cab
.I TIFF_SHORT
roentgen b75cab
.br
roentgen b75cab
.I TIFF_SSHORT
roentgen b75cab
.br
roentgen b75cab
.I TIFF_LONG
roentgen b75cab
.br
roentgen b75cab
.I TIFF_SLONG
roentgen b75cab
.br
roentgen b75cab
.I TIFF_FLOAT
roentgen b75cab
.br
roentgen b75cab
.I TIFF_IFD
roentgen b75cab
.br
roentgen b75cab
.I TIFF_RATIONAL
roentgen b75cab
.br
roentgen b75cab
.I TIFF_SRATIONAL
roentgen b75cab
.br
roentgen b75cab
.I TIFF_DOUBLE
roentgen b75cab
.br
roentgen b75cab
.SH "RETURN VALUES"
roentgen b75cab
.br
roentgen b75cab
.IR TIFFDataWidth
roentgen b75cab
returns a number of bytes occupied by the item of given type. 0 returned when
roentgen b75cab
uknown data type supplied.
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR libtiff (3TIFF),
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/