Class JPEGFile
Represents the binary view of a JPEG compressed file.
Inherited Members
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class JPEGFile : ImageFile
Constructors
| Improve this Doc View SourceJPEGFile(MemoryStream, Encoding, Boolean)
Initializes a new instance of the JPEGFile class.
Declaration
protected JPEGFile(MemoryStream stream, Encoding encoding, bool readTrailingData = false)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | stream | A stream that contains image data. |
System.Text.Encoding | encoding | The encoding to be used for text metadata when the source encoding is unknown. |
System.Boolean | readTrailingData | Whether to read data beyond the EOI (end of image) marker. |
Properties
| Improve this Doc View SourceByteOrder
Gets or sets the byte-order of the Exif properties.
Declaration
public BitConverterEx.ByteOrder ByteOrder { get; set; }
Property Value
Type | Description |
---|---|
BitConverterEx.ByteOrder |
Sections
Gets the sections contained in the ImageFile.
Declaration
public List<JPEGSection> Sections { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<JPEGSection> |
TrailingData
Gets or sets non-standard trailing data following the End of Image (EOI) marker.
Declaration
public byte[] TrailingData { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Methods
| Improve this Doc View SourceCrush()
Decreases file size by removing all metadata.
Declaration
public override void Crush()
Overrides
| Improve this Doc View SourceSaveInternal(MemoryStream)
Saves the JPEG/Exif image to the given stream.
Declaration
protected override void SaveInternal(MemoryStream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | stream |