Click or drag to resize

JpegEncoderCopyJpegWithNewMarkers Method (Stream, Stream)

Performs 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(
	Stream source,
	Stream dest
)

Parameters

source
Type: System.IOStream
The source image stream to copy from.
dest
Type: System.IOStream
The destintation image stream to copy to.
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