Show / Hide Table of Contents

Class JPEGFile

Represents the binary view of a JPEG compressed file.

Inheritance
System.Object
ImageFile
JPEGFile
Inherited Members
ImageFile.Format
ImageFile.Properties
ImageFile.Thumbnail
ImageFile.Item[Int32]
ImageFile.Encoding
ImageFile.Errors
ImageFile.Save(String)
ImageFile.Save(Stream)
ImageFile.SaveAsync(String)
ImageFile.SaveAsync(Stream)
ImageFile.FromFile(String)
ImageFile.FromFile(String, Encoding)
ImageFile.FromStream(Stream)
ImageFile.FromStream(Stream, Encoding)
ImageFile.FromBuffer(Byte[])
ImageFile.FromBuffer(Byte[], Encoding)
ImageFile.FromFileAsync(String)
ImageFile.FromFileAsync(String, Encoding)
ImageFile.FromStreamAsync(Stream)
ImageFile.FromStreamAsync(Stream, Encoding)
ImageFile.FromStreamInternal(MemoryStream, Encoding)
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class JPEGFile : ImageFile

Constructors

| Improve this Doc View Source

JPEGFile(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 Source

ByteOrder

Gets or sets the byte-order of the Exif properties.

Declaration
public BitConverterEx.ByteOrder ByteOrder { get; set; }
Property Value
Type Description
BitConverterEx.ByteOrder
| Improve this Doc View Source

Sections

Gets the sections contained in the ImageFile.

Declaration
public List<JPEGSection> Sections { get; }
Property Value
Type Description
System.Collections.Generic.List<JPEGSection>
| Improve this Doc View Source

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 Source

Crush()

Decreases file size by removing all metadata.

Declaration
public override void Crush()
Overrides
ImageFile.Crush()
| Improve this Doc View Source

SaveInternal(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
Overrides
ImageFile.SaveInternal(MemoryStream)
Back to top Copyright © 2019 Özgür Özçıtak