Modules | Alphabetical List | Class List | Directories | File List | File Members | GIL Home Page # TIFF I/O [I/O] ## Detailed Description Support for reading and writing TIFF image files.
## Classes
struct | tiff_read_support
| Determines whether the given view type is supported for reading. More...
struct | tiff_write_support
| Determines whether the given view type is supported for writing. More...
## Functions
template<typename Images>
void | boost::gil::tiff_read_image (const char *filename, any_image< Images > &im)
| reads a TIFF image into a run-time instantiated image Opens the given tiff file name, selects the first type in Images whose color space and channel are compatible to those of the image file and creates a new image of that type with the dimensions specified by the image file. Throws std::ios_base::failure if none of the types in Images are compatible with the type on disk.
template<typename Images>
void | boost::gil::tiff_read_image (const std::string &filename, any_image< Images > &im)
| reads a TIFF image into a run-time instantiated image
template<typename Views>
void | boost::gil::tiff_write_view (const char *filename, const any_image_view< Views > &runtime_view)
| Saves the currently instantiated view to a tiff file specified by the given tiff image file name. Throws std::ios_base::failure if the currently instantiated view type is not supported for writing by the I/O extension or if it fails to create the file.
template<typename Views>
void | boost::gil::tiff_write_view (const std::string &filename, const any_image_view< Views > &runtime_view)
| Saves the currently instantiated view to a tiff file specified by the given tiff image file name.
point2< std::ptrdiff_t > | boost::gil::tiff_read_dimensions (const char *filename)
| Returns the width and height of the TIFF file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid TIFF file.
point2< std::ptrdiff_t > | boost::gil::tiff_read_dimensions (const std::string &filename)
| Returns the width and height of the TIFF file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid TIFF file.
template<typename View>
void | boost::gil::tiff_read_view (const char *filename, const View &view)
| Loads the image specified by the given tiff image file name into the given view. Triggers a compile assert if the view color space and channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its color space or channel depth are not compatible with the ones specified by View, or if its dimensions don't match the ones of the view.
template<typename View>
void | boost::gil::tiff_read_view (const std::string &filename, const View &view)
| Loads the image specified by the given tiff image file name into the given view.
template<typename Image>
void | boost::gil::tiff_read_image (const char *filename, Image &im)
| Allocates a new image whose dimensions are determined by the given tiff image file, and loads the pixels into it. Triggers a compile assert if the image color space or channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its color space or channel depth are not compatible with the ones specified by Image.
template<typename Image>
void | boost::gil::tiff_read_image (const std::string &filename, Image &im)
| Allocates a new image whose dimensions are determined by the given tiff image file, and loads the pixels into it.
template<typename View, typename CC>
void | boost::gil::tiff_read_and_convert_view (const char *filename, const View &view, CC cc)
| Loads and color-converts the image specified by the given tiff image file name into the given view. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its dimensions don't match the ones of the view.
template<typename View>
void | boost::gil::tiff_read_and_convert_view (const char *filename, const View &view)
| Loads and color-converts the image specified by the given tiff image file name into the given view. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its dimensions don't match the ones of the view.
template<typename View, typename CC>
void | boost::gil::tiff_read_and_convert_view (const std::string &filename, const View &view, CC cc)
| Loads and color-converts the image specified by the given tiff image file name into the given view.
template<typename View>
void | boost::gil::tiff_read_and_convert_view (const std::string &filename, const View &view)
| Loads and color-converts the image specified by the given tiff image file name into the given view.
template<typename Image, typename CC>
void | boost::gil::tiff_read_and_convert_image (const char *filename, Image &im, CC cc)
| Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it. Throws std::ios_base::failure if the file is not a valid TIFF file.
template<typename Image>
void | boost::gil::tiff_read_and_convert_image (const char *filename, Image &im)
| Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it. Throws std::ios_base::failure if the file is not a valid TIFF file.
template<typename Image, typename CC>
void | boost::gil::tiff_read_and_convert_image (const std::string &filename, Image &im, CC cc)
| Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it.
template<typename Image>
void | boost::gil::tiff_read_and_convert_image (const std::string &filename, Image &im)
| Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it.
template<typename View>
void | boost::gil::tiff_write_view (const char *filename, const View &view)
| Saves the view to a tiff file specified by the given tiff image file name. Triggers a compile assert if the view color space and channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if it fails to create the file.
template<typename View>
void | boost::gil::tiff_write_view (const std::string &filename, const View &view)
| Saves the view to a tiff file specified by the given tiff image file name.