Click or drag to resize

JpegEncoder Class

An ImageEncoder that will write JPEG images to a Stream.

Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.CodecImageEncoder
    Atalasoft.Imaging.CodecJpegEncoder

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 class JpegEncoder : ImageEncoder, 
	IAnnotationEncoder

The JpegEncoder type exposes the following members.

Constructors
  NameDescription
Public methodJpegEncoder
Initializes a new instance of a JpegEncoder.
Public methodJpegEncoder(Int32)
Initializes a new instance of the JpegEncoder specifying the quality.
Public methodJpegEncoder(Int32, Int32)
Initializes a new instance of a JpegEncoder specifying the quality and smoothing.
Public methodJpegEncoder(Int32, Int32, Boolean)
Initializes a new instance of a JpegEncoder specifying the quality, smoothing, and progressive value.
Top
Properties
  NameDescription
Public propertyAppMarkers
Gets or sets the JPEG APPn Markers that will be saved with the image.
Public propertyComText
Gets or sets COM Text Markers that are to be saved with the image.
Public propertyDctMode
Gets or sets the DCT compression mode used for encoding.
Public propertyImageType
Get the ImageType associated with this Encoder Setting.
Public propertyIptcTags
Gets or sets IPTC Metadata that will be saved with the image.
Public propertyPhotoshopResources
Gets or sets Photoshop resources to be saved with the image.
Public propertyProgressive
Gets or sets a value indicating if the image is saved progressively.
Public propertyQuality
Gets or sets the quality level of the Jpeg as it's encoded to a file. Valid values are 1 - 100 with a default of 75.
Public propertySmoothing
Gets or sets the smoothing level when saving a Jpeg image.
Public propertySupportedPixelFormats
Returns an array of pixel formats supported by this encoder.
(Overrides ImageEncoderSupportedPixelFormats.)
Public propertyXmp
Gets or sets a byte array containing XMP data.
Top
Methods
  NameDescription
Public methodCode exampleCopyJpegWithNewMarkers(Stream, Stream)
Performs a lossless copy of the JPEG image data into a new image while replacing the JPEG metadata with new metadata.
Public methodCode exampleCopyJpegWithNewMarkers(String, String)
These methods perform a lossless copy of the JPEG image data into a new image while replacing the JPEG metadata with new metadata.
Public methodCode exampleCopyJpegWithNewMarkers(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.
Public methodCode exampleCopyJpegWithNewMarkers(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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsPixelFormatSupported
Returns true if the given PixelFormat can be encoded with the derived encoder.
(Inherited from ImageEncoder.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave
Encode an AtalaImage as a Jpeg image to a stream.
(Overrides ImageEncoderSave(Stream, AtalaImage, ProgressEventHandler).)
Public methodCode exampleSetDownsamplingFactors
Sets the downsampling factors used when compressing the image data. This will affect both quality and file size of the saved image.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This ImageEncoder can be passed into the the AtalaImage or Workspace objects when saving to specify a JPEG image.

Metadata can be written with the JPEG image including EXIF, IPTC and COM Comments. See the Atalasoft.Imaging.Metadata namespace for more information.

If the image being saved contains a ColorProfile, it will be embedded within the file.

See Also