![]() |
FlowEngine 8.011
Photogrammetry Software Development Kit
|
#include <ImageIO.h>
Static Public Member Functions | |
| static FLE_DLL Result | getDimensions (ConstStringBuffer filePath, int &outWidth, int &outHeight) |
| static FLE_DLL Result | getImageFormatCapabilities (ConstStringBuffer formatName, bool &outCanRead, bool &outCanWrite) |
| static FLE_DLL Index | getImageFormatCount () |
| static FLE_DLL Result | getImageFormatDescription (ConstStringBuffer formatName, StringBuffer outFormatDescription) |
| static FLE_DLL Size | getImageFormatDescriptionSize (ConstStringBuffer formatName) |
| static FLE_DLL Result | getImageFormatName (Index index, StringBuffer outFormatName) |
| static FLE_DLL Size | getImageFormatNameSize (Index index) |
| static FLE_DLL ImagingEngine | getImagingEngine () |
| static FLE_DLL Result | load (Image &image, ConstStringBuffer filePath) |
| static FLE_DLL Result | save (const Image &image, ConstStringBuffer filePath, Size bitDepth=0) |
| static FLE_DLL void | setImagingEngine (ImagingEngine imagingEngine) |
Utility methods related to image files.
|
static |
| [in] | filePath | a string buffer containing the path where to save the image to. |
| [out] | outWidth | the width of the image in pixels. |
| [out] | outHeight | the height of the image in pixels. |
outWidth and outHeight are set with the image dimensions.image has not valid dimensions.filePath is not a valid constant string buffer.filePath does not point to a valid image file.
|
static |
Queries the capabilities available for the specified format.
| [in] | formatName | the name of the format. See getImageFormatName(). |
| [out] | outCanRead | set to true if a decoder is available for this format, false otherwise. |
| [out] | outCanWrite | set to true if an encoder is available for this format, false otherwise. |
outCanRead and outCanWrite were filled with the requested information.formatName is not a valid string buffer or is not a supported format. See getImageFormatName().
|
static |
|
static |
| [in] | formatName | the name of the format. See getImageFormatName(). |
| [in] | outFormatDescription | a string buffer that will receive the format description. Must be big enough to receive the full text. See getImageFormatDescriptionSize(). |
outFormatDescription was filled with the name of the specified format;formatName is not a valid buffer or it's not a supported format.outFormatDescription is not a valid string buffer.outFormatDescription is not big enough to receive all data.
|
static |
| [in] | formatName | the name of the format. See getImageFormatName(). |
|
static |
| [in] | index | the index of the format to query. Must be in the range [0, getInputFormatCount()) |
| [in] | outFormatName | a string buffer that will receive the format name. Must be big enough to receive the full name. See getInputFormatNameSize(). |
outFormatName was filled with the name of the specified format;index is not in the valid range.outFormatName is not a valid string buffer.outFormatName is not big enough to receive all data.| [in] | index | the index of the format to query. Must be in the range [0, getInputFormatCount()) |
|
static |
|
static |
Loads an image from a file.
| [in,out] | image | the image that will receive the loaded image. The image data buffer must be big enough to receive the image data. Use getDimensions to know the exact size required. |
| [in] | filePath | a string buffer containing the path where to save the image to. |
inOutImage data buffer was filled with the computed equirectangular image.image has not valid dimensions.image data buffer is not validfilePath is not a valid constant string buffer.image data buffer is too small.filePath does not point to a valid image file.
|
static |
Saves an image to a file.
| [in] | image | the image to be saved |
| [in] | filePath | a string buffer containing the path where to save the image to. |
| [in] | bitDepth | (optional) the bitdepth (per channel) of the image. Use default (0) for automatic. |
inOutImage data buffer was filled with the computed equirectangular image.image has not valid dimensions.image data buffer is not valid.filePath is not a valid constant string buffer.
|
static |
Set the default imaging engine to use for read / write operations
| [in] | imagingEngine | the new imaging engine to use. See ImagingEngine. |