Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Macros | Typedefs | Functions
ImageIo.h File Reference
#include "cinder/Cinder.h"
#include "cinder/DataSource.h"
#include "cinder/DataTarget.h"
#include "cinder/Surface.h"
#include "cinder/Exception.h"
#include <vector>
#include <map>
#include <utility>
Include dependency graph for ImageIo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cinder::ImageIo
 
class  cinder::ImageSource
 
class  cinder::ImageSource::Options
 Optional parameters passed when creating an Image. More...
 
class  cinder::ImageTarget
 
class  cinder::ImageTarget::Options
 
class  cinder::ImageIoException
 
class  cinder::ImageIoExceptionFailedLoad
 
class  cinder::ImageIoExceptionFailedWrite
 
class  cinder::ImageIoExceptionUnknownExtension
 
class  cinder::ImageIoExceptionIllegalColorModel
 
class  cinder::ImageIoExceptionIllegalDataType
 
class  cinder::ImageIoExceptionIllegalChannelOrder
 
struct  cinder::ImageIoRegistrar
 
struct  cinder::ImageIoRegistrant< T >
 

Namespaces

 cinder
 

Macros

#define REGISTER_IMAGE_IO_FILE_HANDLER(TYPE)
 

Typedefs

typedef std::shared_ptr< class
ImageLoader > 
cinder::ImageLoaderRef
 
typedef std::shared_ptr< class
ImageTarget > 
cinder::ImageTargetRef
 
typedef std::shared_ptr< class
ImageTargetFile > 
cinder::ImageTargetFileRef
 

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 (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 (const fs::path &path, const ImageSourceRef &imageSource, ImageTarget::Options options=ImageTarget::Options(), std::string extension="")
 
void cinder::writeImage (ImageTargetRef imageTarget, const ImageSourceRef &imageSource)
 Writes imageSource to imageTarget. More...
 

Macro Definition Documentation

#define REGISTER_IMAGE_IO_FILE_HANDLER (   TYPE)
Value:
struct ImageIoRegisterT##TYPE : public ImageIoRegistrant<TYPE> { \
ImageIoRegisterT##TYPE() : ImageIoRegistrant<TYPE>() {} \
};