Click or drag to resize

JpegEncoderCopyJpegWithNewMarkers Method (String, String, JpegMarkerCopyFlags)

These methods perform a lossless copy of the JPEG image data into a new image while replacing the JPEG metadata with new metadata.

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void CopyJpegWithNewMarkers(
	string source,
	string dest,
	JpegMarkerCopyFlags flags
)

Parameters

source
Type: SystemString
The source image filename to copy from.
dest
Type: SystemString
The destintation image filename to copy to.
flags
Type: Atalasoft.Imaging.MetadataJpegMarkerCopyFlags
Specifies the metadata to copy into the new image.
Remarks
By saving the APP1 Jpeg marker, EXIF, IPTC, and COM data can be copied to existing images, without the need to recompress the image data. This method does not overwrite existing JPEG images, but creates a copy of the existing JPEG data. The original image could be deleted if this method succeeds.
Examples
CopyJpegWithNewMarkers Method
See Also