TinyTIFF
a lightweight C/C++ library for reading and writing TIFF files
Loading...
Searching...
No Matches

this template allows to determine a value for TinyTIFFWriterSampleFormat from a given type T More...

#include <tinytiff_tools.hxx>

Data Fields

enum TinyTIFFWriterSampleFormat format =TinyTIFFWriter_UInt
 

Detailed Description

template<class T>
struct TinyTIFF_SampleFormatFromType< T >

this template allows to determine a value for TinyTIFFWriterSampleFormat from a given type T

The format can be determined from the type TDATA by :

TinyTIFFWriterFile* tiff = TinyTIFFWriter_open(filename, sizeof(TDATA)*8, TinyTIFF_SampleFormatFromType<TDATA>().format, 1, width, height, TinyTIFFWriter_Greyscale);
TinyTIFFWriterFile * TinyTIFFWriter_open(const char *filename, uint16_t bitsPerSample, enum TinyTIFFWriterSampleFormat sampleFormat, uint16_t samples, uint32_t width, uint32_t height, enum TinyTIFFWriterSampleInterpretation sampleInterpretation)
create a new TIFF file
Definition tinytiffwriter.c:700
@ TinyTIFFWriter_Greyscale
Definition tinytiffwriter.h:100
this template allows to determine a value for TinyTIFFWriterSampleFormat from a given type T
Definition tinytiff_tools.hxx:56
this struct represents a TIFF file
Definition tinytiffwriter.c:99

The documentation for this struct was generated from the following file: