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: (.NET 4.5.2, x86)
public void CopyJpegWithNewMarkers(
	Stream source,
	Stream dest


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