The CELIO JavaScript global object. Provide information about image file. More...
Public Member Functions | |
QVariant | getLayerInformation (String path) |
QVariant | getInformation (String path) |
QVariant | getInformation (String path, bool withLayers) |
bool | writeLayeredFile (String format, String options, QScriptValue groupArray, String outputFile) |
The CELIO JavaScript global object. Provide information about image file.
QVariant CELIO::getInformation | ( | String | path | ) |
Returns information about the resolution of an image file.
QVariant CELIO::getInformation | ( | String | path, |
bool | withLayers | ||
) |
Returns information about the resolution of an image file. Will also return the layer information if withLayer argument is true.
QVariant CELIO::getLayerInformation | ( | String | path | ) |
Returns an array describing each layer of a multi-layer image. Currently, only the PSD has multi-layer information.
bool CELIO::writeLayeredFile | ( | String | format, |
String | options, | ||
QScriptValue | groupArray, | ||
String | outputFile | ||
) |
Create a multi-layer grouped file from a hierarchical data structure of groups, sub-groups, and layers.
format | The format of the output file (e.g.: "psd") |
options | The format related options (e.g.: for 'psd', this could be "PSD3", "PSD4", "PSD1", "PSDDP4", "PSDDP3") |
groupArray | An array of group objects, a group object should have a 'name' string property, an optional 'groups' array property, and an optional 'layers' array property. The 'layers' array should be made of objects with the 'name' string property and 'file' string property. |
outputFile | The full path to the output file. |