Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

TIFFDataWidth (3tiff)

Name

TIFFDataWidth - Get the size of TIFF data types

Synopsis

#include <tiffio.h>

int TIFFDataWidth(TIFFDataType type)

Description

TIFFDataWidth(3TIFF)                                      TIFFDataWidth(3TIFF)



NAME
       TIFFDataWidth - Get the size of TIFF data types

SYNOPSIS
       #include <tiffio.h>

       int TIFFDataWidth(TIFFDataType type)

DESCRIPTION
       TIFFDataWidth  returns  a  size  of type in bytes.  Currently following
       data types are supported:
       TIFF_BYTE
       TIFF_ASCII
       TIFF_SBYTE
       TIFF_UNDEFINED
       TIFF_SHORT
       TIFF_SSHORT
       TIFF_LONG
       TIFF_SLONG
       TIFF_FLOAT
       TIFF_IFD
       TIFF_RATIONAL
       TIFF_SRATIONAL
       TIFF_DOUBLE

RETURN VALUES
       TIFFDataWidth returns a number of bytes occupied by the item  of  given
       type. 0 returned when uknown data type supplied.

SEE ALSO
       libtiff(3TIFF),

       Libtiff library home page: http://www.simplesystems.org/libtiff/



libtiff                       September 12, 2002          TIFFDataWidth(3TIFF)