#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>
Go to the source code of this file.
|
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...
|
|
#define REGISTER_IMAGE_IO_FILE_HANDLER |
( |
|
TYPE | ) |
|
Value:struct ImageIoRegisterT##TYPE : public ImageIoRegistrant<TYPE> { \
ImageIoRegisterT##TYPE() : ImageIoRegistrant<TYPE>() {} \
};