Class ExifProfile
Represents an EXIF profile providing access to the collection of values.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Exif
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class ExifProfile : IDeepCloneable<ExifProfile>
Constructors
| Improve this Doc View SourceExifProfile()
Initializes a new instance of the ExifProfile class.
Declaration
public ExifProfile()
ExifProfile(Byte[])
Initializes a new instance of the ExifProfile class.
Declaration
public ExifProfile(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | The byte array to read the EXIF profile from. |
Properties
| Improve this Doc View SourceInvalidTags
Gets the tags that where found but contained an invalid value.
Declaration
public IReadOnlyList<ExifTag> InvalidTags { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ExifTag> |
Parts
Gets or sets which parts will be written when the profile is added to an image.
Declaration
public ExifParts Parts { get; set; }
Property Value
Type | Description |
---|---|
ExifParts |
Values
Gets the values of this EXIF profile.
Declaration
public IReadOnlyList<IExifValue> Values { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IExifValue> |
Methods
| Improve this Doc View SourceCreateThumbnail<TPixel>()
Returns the thumbnail in the EXIF profile when available.
Declaration
public Image<TPixel> CreateThumbnail<TPixel>()
where TPixel : struct, IPixel<TPixel>
Returns
Type | Description |
---|---|
Image<TPixel> | The Image<TPixel>. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |
DeepClone()
Creates a new T
that is a deep copy of the current instance.
Declaration
public ExifProfile DeepClone()
Returns
Type | Description |
---|---|
ExifProfile | The |
GetValue<TValueType>(ExifTag<TValueType>)
Returns the value with the specified tag.
Declaration
public IExifValue<TValueType> GetValue<TValueType>(ExifTag<TValueType> tag)
Parameters
Type | Name | Description |
---|---|---|
ExifTag<TValueType> | tag | The tag of the exif value. |
Returns
Type | Description |
---|---|
IExifValue<TValueType> | The value with the specified tag. |
Type Parameters
Name | Description |
---|---|
TValueType | The data type of the tag. |
RemoveValue(ExifTag)
Removes the value with the specified tag.
Declaration
public bool RemoveValue(ExifTag tag)
Parameters
Type | Name | Description |
---|---|---|
ExifTag | tag | The tag of the EXIF value. |
Returns
Type | Description |
---|---|
Boolean | The Boolean. |
SetValue<TValueType>(ExifTag<TValueType>, TValueType)
Sets the value of the specified tag.
Declaration
public void SetValue<TValueType>(ExifTag<TValueType> tag, TValueType value)
Parameters
Type | Name | Description |
---|---|---|
ExifTag<TValueType> | tag | The tag of the exif value. |
TValueType | value | The value. |
Type Parameters
Name | Description |
---|---|
TValueType | The data type of the tag. |
ToByteArray()
Converts this instance to a byte array.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
Byte[] | The byte[] |