VTIL_SaveAsImage
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long VTIL_SaveAsImage(dbNode workingSetMaster, dword maskOrSoftkey, char imagePath[]); // form 1long VTIL_SaveAsImage(dword addressWorkingSetMaster, dword maskOrSoftkey, char imagePath[]); // form 2long VTIL_SaveAsImage(dbNode workingSetMaster, char imagePath[]); // form 3long VTIL_SaveAsImage(dword addressWorkingSetMaster, char imagePath[]); // form 4long VTIL_SaveAsImage(char imagePath[]); // form 5long VTIL_SaveAsImage(dbNode vt, dbNode workingSetMaster, dword maskOrSoftkey, char imagePath[]); // form 6long VTIL_SaveAsImage(dbNode vt, dword addressWorkingSetMaster, dword maskOrSoftkey, char imagePath[]); // form 7long VTIL_SaveAsImage(dbNode vt, dbNode workingSetMaster, char imagePath[]); // form 8long VTIL_SaveAsImage(dbNode vt, dword addressWorkingSetMaster, char imagePath[]); // form 9long VTIL_SaveAsImage(dbNode vt, char imagePath[]); // form 10
Description
- Form 1, 2, 6, 7 saves the current Data/Alarm Mask or one of the current Soft Keys of the specified Working Set as an image.
- Form 3, 4, 8 and 9 saves the current Data/Alarm Mask and all Soft Keys of the specified Working Set as a single image.
- Form 5 and 10 saves the current Data/Alarm Mask and all Soft Keys of the active Working Set as a single image.
- An existing file is overwritten.
Parameters
- vt: VT simulation node to apply the function
- workingSetMaster: Working Set Master which Data/Alarm Mask or Soft Key is saved as an image (must not be the active Working Set)
- addressWorkingSetMaster: Address of the Working Set Master which Data/Alarm Mask or Soft Key is saved as an image (must not be the active Working Set)
- maskOrSoftkey:
- 0: Current active Data or Alarm Mask
- 1-64: A current active Soft Key
- imagePath: Saves the current Data/Alarm Mask or/and soft key(s) in this file (*.bmp, *.png, *.jpg or *.gif). Path has to be absolute or relative relating to the folder of the CANoe configuration.
Return Values
- 0: Data/Alarm Mask has been saved successfully.
- < 0: An error has occurred, see IL Error Code.