|
|
|
|
|
- Image displayed in an Image control
ImageInfoSave (Function) In french: ImageInfoSauve Saves the modifications performed on the Exif tags of an image by ImageInfoModify. Remarks: - The Exif (EXchangeable Image File) information is included in the image file. This standard defines a set of markers for storing a wide range of image-related information: date, width, orientation, camera model, shutter speed, subject distance, exposure time, etc.
- dSaveImageJPEG can also be used to save changes made to the Exif tags of an image in an Image control or a variable of type Image.
- To handle the Exif tags of an image, use the Exif property of Image variables. This property can be used on Android applications.
CheminImg is string = "C:\Voyage\Maurice1.JPG"
ImageInfoModify(CheminImg, imgCopyright, "PC Soft" + DateSys())
ImageInfoModify(CheminImg, imgDescription, "Paysage de rêve")
ImageInfoSave(CheminImg)
ImageInfoClose(CheminImg)
ImageInfoModify(IMG_MonChampImage, imgComment, "Belles gorgones")
ImageInfoSave(MonChampImage, "C:\Plongees\Gorgone1.JPG", 100)
Syntax
<Result> = ImageInfoSave(<Image> [, <New image> [, <Quality>]])
<Result>: Boolean - True if the modifications have been recorded,
- False otherwise. To get more details on the error, use ErrorInfo.
<Image>: Character string Image to use. This image can correspond to:- an image file (JPEG format): specify the name and full (or relative) path of the file. A UNC path can be used.
In this case, the file must be closed by ImageInfoClose. - an image displayed in an Image control: specify the name of the Image control. If this image is not in JPEG format, it will be automatically converted to this format.
- an image (JPEG format) contained in a picture memo: specify this picture memo.
- an image (JPEG format) contained in a binary string: specify this binary string.
<New image>: Optional character string Name and full (or relative) path of the new JPEG file. A UNC path can be used.If <Image> corresponds to an image file, this parameter is optional. In this case, the <Image> file will be modified. If <Image> corresponds to an image displayed in an Image control, only the visible section of the image displayed in the Image control will be saved. The Exif tags will be kept. <Quality>: Optional integer Quality of the image saved. Value between 1 and 100 (80 by default). The lower the image quality will be, the higher the compression rate of the image will be and the smaller the file size will be. This parameter is taken into account only if <Image> corresponds to an image displayed in an Image control. Otherwise, this parameter is ignored. Remarks Image displayed in an Image control dSaveImageJPEG can also be used to save the modifications performed on the Exif tags of an image displayed in an Image control. The following syntaxes are equivalent:
ImageInfoSave(MonChampImage, "C:\Mes Images\PlongeeMaurice.JPG", 100)
dSaveImageJPEG(MonChampImage, "C:\Mes Images\PlongeeMaurice.JPG", 100, imgSaveTag)
Reminder Only the visible part of the image displayed in the Image control is saved. The Exif tags will be kept.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|