# Cinder

# include/cinder/ImageIo.h File Reference

Go to the source code of this file.

## Classes
class | cinder::ImageIo
class | cinder::ImageSource
class | cinder::ImageTarget
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::ImageIoRegistrar::Inst
struct | cinder::ImageIoRegistrant< T >
struct | cinder::ImageIoRegistrant< T >::exec_register
## Namespaces
namespace | cinder
## Typedefs
typedef shared_ptr< class ImageLoader > | cinder::ImageLoaderRef
typedef shared_ptr< class ImageTarget > | cinder::ImageTargetRef
typedef shared_ptr< class ImageTargetFile > | cinder::ImageTargetFileRef
## Functions
ImageSourceRef | cinder::loadImage (const std::string &path, 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.
ImageSourceRef | cinder::loadImage (DataSourceRef dataSource, 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.
void | cinder::writeImage (DataTargetRef dataTarget, const ImageSourceRef &imageSource, 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.
void | cinder::writeImage (const std::string &path, const ImageSourceRef &imageSource, std::string extension="")
void | cinder::writeImage (ImageTargetRef imageTarget, const ImageSourceRef &imageSource)
| Writes imageSource to imageTarget.