Class JPEGSection
Represents the memory view of a JPEG section. A JPEG section is the data between markers of the JPEG file.
Inheritance
System.Object
JPEGSection
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class JPEGSection
Constructors
| Improve this Doc View SourceJPEGSection(JPEGMarker)
Constructs a JPEGSection represented by the marker byte.
Declaration
public JPEGSection(JPEGMarker marker)
Parameters
Type | Name | Description |
---|---|---|
JPEGMarker | marker | The marker byte representing the section. |
JPEGSection(JPEGMarker, Byte[], Byte[])
Constructs a JPEGSection represented by the marker byte and containing the given data.
Declaration
public JPEGSection(JPEGMarker marker, byte[] data, byte[] entropydata)
Parameters
Type | Name | Description |
---|---|---|
JPEGMarker | marker | The marker byte representing the section. |
System.Byte[] | data | Section data. |
System.Byte[] | entropydata | Entropy coded data. |
Properties
| Improve this Doc View SourceEntropyData
For the SOS and RST markers, this contains the entropy coded data.
Declaration
public byte[] EntropyData { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Header
Section header as a byte array. This is different from the header definition in JPEG specification in that it does not include the two byte section length.
Declaration
public byte[] Header { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Marker
The marker byte representing the section.
Declaration
public JPEGMarker Marker { get; }
Property Value
Type | Description |
---|---|
JPEGMarker |
Methods
| Improve this Doc View SourceToString()
Returns a string representation of the current section.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current section. |
Overrides
System.Object.ToString()