Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
ImageIo.cpp File Reference
#include "cinder/ImageIo.h"
#include "cinder/Utilities.h"
#include <boost/utility.hpp>
#include <boost/type_traits/is_same.hpp>
#include <cctype>
Include dependency graph for ImageIo.cpp:

Namespaces

 cinder
 

Functions

ImageSourceRef cinder::loadImage (const fs::path &path, ImageSource::Options options=ImageSource::Options(), std::string extension="")
 Loads an image from the file path path. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
ImageSourceRef cinder::loadImage (DataSourceRef dataSource, ImageSource::Options options=ImageSource::Options(), std::string extension="")
 Loads an image from dataSource. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
void cinder::writeImage (const fs::path &path, const ImageSourceRef &imageSource, ImageTarget::Options options=ImageTarget::Options(), std::string extension="")
 
void cinder::writeImage (DataTargetRef dataTarget, const ImageSourceRef &imageSource, ImageTarget::Options options=ImageTarget::Options(), std::string extension="")
 Writes imageSource to dataTarget. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
void cinder::writeImage (ImageTargetRef imageTarget, const ImageSourceRef &imageSource)
 Writes imageSource to imageTarget. More...