JpegEncoderCopyJpegWithNewMarkers Method (Stream, Stream, 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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public void CopyJpegWithNewMarkers(
Stream source,
Stream dest,
JpegMarkerCopyFlags flags
)
Public Sub CopyJpegWithNewMarkers (
source As Stream,
dest As Stream,
flags As JpegMarkerCopyFlags
)
Parameters
- source
- Type: System.IOStream
The source image stream to copy from. - dest
- Type: System.IOStream
The destintation image stream 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