ShowSaveDialog

Top  Previous  Next

Prototype

 

StrFile:=ShowSaveDialog (strTitle,StrDirectory,StrFile)

 

Description

 

It shows a dialog window to save a file.

 

Parameters

 

StrTitle: string representing the window  title of dialog type.

 

StrDirectory: string corresponding to the destination file directory.

 

StrFile: string figuring the extension of file to be saved.

 

Returned value

 

StrFile: string containig the file path if this last is selected else the string is empty.

 

Notes

 

None.

 

Example

 

// It opens an image

image:=ImgOpen(ShowOpenDialog('Image opening','',''),0);

 

//It shows the image 

ImgShow(Image);

 

//It shows a message 

ShowMessage('Shown image !');

 

//It copies an image rectangle

imageRett:=ImgCopy(image,1,30,20,90);

 

//It shows rectangle

ImgShow(imageRett);

 

//It saves the rectangle into a new image

ImgSave(imageRett,ShowSaveDialog('Saving Image Rectangle','',''));

 

//It deletes the image from memory 

imgDelete(image);