src/cinder/ImageIo.cpp File Reference

Namespaces

namespace  cinder

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 (const std::string &path, const ImageSourceRef &imageSource, std::string extension="")
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 (ImageTargetRef imageTarget, const ImageSourceRef &imageSource)
 Writes imageSource to imageTarget.