Class JpegExifData
EXIF data container for jpeg files.
public sealed class JpegExifData : ExifData
- Inheritance
-
JpegExifData
- Inherited Members
Constructors
JpegExifData()
Initializes a new instance of the JpegExifData class.
public JpegExifData()
JpegExifData(ExifData)
Initializes a new instance of the JpegExifData class with data from array.
public JpegExifData(ExifData exifdata)
Parameters
exifdata
ExifDataArray of EXIF tags together with common and GPS tags.
JpegExifData(TiffDataType[])
Initializes a new instance of the JpegExifData class with data from array.
public JpegExifData(TiffDataType[] exifdata)
Parameters
exifdata
TiffDataType[]Array of EXIF tags together with common and GPS tags.
JpegExifData(TiffDataType[], TiffDataType[], TiffDataType[])
Initializes a new instance of the JpegExifData class with data from array.
public JpegExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)
Parameters
commonTags
TiffDataType[]The common tags.
exifTags
TiffDataType[]The EXIF tags.
gpsTags
TiffDataType[]The GPS tags.
Fields
MaxExifSegmentSize
The maximum EXIF segment size in bytes allowed.
public const int MaxExifSegmentSize = 65528
Field Value
Properties
Artist
Gets or sets the artist.
public string Artist { get; set; }
Property Value
- string
The artist.
BitsPerSample
Gets or sets the bits per sample.
public ushort[] BitsPerSample { get; set; }
Property Value
- ushort[]
The bits per sample.
Compression
Gets or sets the compression.
public ushort Compression { get; set; }
Property Value
- ushort
The compression.
Copyright
Gets or sets the copyright.
public string Copyright { get; set; }
Property Value
- string
The copyright.
DateTime
Gets or sets the date time.
public string DateTime { get; set; }
Property Value
- string
The date time.
ImageDescription
Gets or sets the image description.
public string ImageDescription { get; set; }
Property Value
- string
The image description.
ImageLength
Gets or sets the image length.
public uint ImageLength { get; set; }
Property Value
- uint
The length of the image.
ImageWidth
Gets or sets the image width.
public uint ImageWidth { get; set; }
Property Value
- uint
The width of the image.
Model
Gets or sets the model.
public string Model { get; set; }
Property Value
- string
The model.
Orientation
Gets or sets the orientation.
public ExifOrientation Orientation { get; set; }
Property Value
- ExifOrientation
The orientation.
PhotometricInterpretation
Gets or sets the photometric interpretation.
public ushort PhotometricInterpretation { get; set; }
Property Value
- ushort
The photometric interpretation.
PlanarConfiguration
Gets or sets the planar configuration.
public ushort PlanarConfiguration { get; set; }
Property Value
- ushort
The planar configuration.
PrimaryChromaticities
Gets or sets the chromaticity of the three primary colors of the image.
public TiffRational[] PrimaryChromaticities { get; set; }
Property Value
- TiffRational[]
The chromaticity of the three primary colors of the image.
ReferenceBlackWhite
Gets or sets the reference black white.
public TiffRational[] ReferenceBlackWhite { get; set; }
Property Value
- TiffRational[]
The reference black white.
ResolutionUnit
Gets or sets the resolution unit.
public ExifUnit ResolutionUnit { get; set; }
Property Value
- ExifUnit
The resolution unit.
SamplesPerPixel
Gets or sets the samples per pixel.
public ushort SamplesPerPixel { get; set; }
Property Value
- ushort
The samples per pixel.
Software
Gets or sets the software.
public string Software { get; set; }
Property Value
- string
The software.
Thumbnail
Gets or sets the thumbnail image.
public RasterImage Thumbnail { get; set; }
Property Value
- RasterImage
The thumbnail.
TransferFunction
Gets or sets the transfer function.
public ushort[] TransferFunction { get; set; }
Property Value
- ushort[]
The transfer function.
XResolution
Gets or sets the x resolution.
public TiffRational XResolution { get; set; }
Property Value
- TiffRational
The x resolution.
YCbCrCoefficients
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
public TiffRational[] YCbCrCoefficients { get; set; }
Property Value
- TiffRational[]
The matrix coefficients for transformation from RGB to YCbCr image data.
YCbCrPositioning
Gets or sets the position of chrominance components in relation to the luminance component.
public ExifYCbCrPositioning YCbCrPositioning { get; set; }
Property Value
- ExifYCbCrPositioning
The position of chrominance components in relation to the luminance component.
YCbCrSubSampling
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
public ushort[] YCbCrSubSampling { get; set; }
Property Value
- ushort[]
The sampling ratio of chrominance components in relation to the luminance component.
YResolution
Gets or sets the y resolution.
public TiffRational YResolution { get; set; }
Property Value
- TiffRational
The y resolution.
Methods
SerializeExifData()
Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents.
public byte[] SerializeExifData()
Returns
- byte[]
The serialized EXIF data.
Remarks
The overall segment size must be less than or equal to MaxExifSegmentSize bytes in order to produce correct jpeg image. Hint: try to reduce the thumbnail size or change its compression in case you have too big EXIF section size.