ScriptObject: PBinaryInfo
This object provides more detailed information about a Perfion binary (i.e. image or file).
Object Properties
Guid ID | The unique ID of the binary |
string FileExtension | The file-extension of the original file stored in Perfion |
string FileName | The File Name of the file stored in Perfion |
bool IsImage | Returns true if the binary is an image |
bool CanMakePreview | Returns true if a preview can be made (this is possible for all images, but also other files like e.g. PDF-files) |
DateTime ModifiedDate | The date the file was last modified. If a new file is loaded to Perfion, the modified date is taken from the file-system (since loading into Perfion does not mean that it was modified). |
DateTime StoredDate | The date the file was stored / loaded to Perfion. Use this data to check if a new file was loaded, as it is possible to load a file with an older ModifiedDate. |
int Width | The width in pixels of the original-size image stored in Perfion. |
int Height | The height in pixels of the original-size image stored in Perfion. |
float WidthDPI | The width in DPI of the original-size image stored in Perfion. |
float HeightDPI | The height in DPI of the original-size image stored in Perfion. |
int FileSize | The file size in bytes, of the original file stored in Perfion. |
int Version | The version of the file stored in Perfion. |
string OutFileName |
|
Object Properties (Special)
The following properties only has useful values when this object is returned from a call to the Perfion.WriteFile() method.
string OutFileName | The file-name a file was saved as, by calling the Perfion.WriteFile() method.The file-name will be relative to the Root-path specified to the WriteFile() method, so it may contain a partial path. |
string OutFilePath | The complete absolute file-path a file was saved to, by calling the Perfion.WriteFile() method. |