public final class JpegExifData extends ExifData
EXIF data container for jpeg files.
Modifier and Type | Field and Description |
---|---|
static int |
MAX_EXIF_SEGMENT_SIZE
The maximum EXIF segment size in bytes allowed.
|
Constructor and Description |
---|
JpegExifData()
Initializes a new instance of the
JpegExifData class. |
JpegExifData(TiffDataType[] exifdata)
Initializes a new instance of the
JpegExifData class with data from array. |
JpegExifData(TiffDataType[] commonTags,
TiffDataType[] exifTags,
TiffDataType[] gpsTags)
Initializes a new instance of the
JpegExifData class with data from array. |
Modifier and Type | Method and Description |
---|---|
String |
getArtist()
Gets or sets the artist.
|
int[] |
getBitsPerSample()
Gets or sets the bits per sample.
|
int |
getCompression()
Gets or sets the compression.
|
String |
getCopyright()
Gets or sets the copyright.
|
String |
getDateTime()
Gets or sets the date time.
|
String |
getImageDescription()
Gets or sets the image description.
|
long |
getImageLength()
Gets or sets the image length.
|
long |
getImageWidth()
Gets or sets the image width.
|
String |
getMake()
Gets or sets the manufacturer of the recording equipment.
|
String |
getModel()
Gets or sets the model.
|
int |
getOrientation()
Gets or sets the orientation.
|
int |
getPhotometricInterpretation()
Gets or sets the photometric interpretation.
|
int |
getPlanarConfiguration()
Gets or sets the planar configuration.
|
TiffRational[] |
getPrimaryChromaticities()
Gets or sets the chromaticity of the three primary colors of the image.
|
TiffRational[] |
getReferenceBlackWhite()
Gets or sets the reference black white.
|
int |
getResolutionUnit()
Gets or sets the resolution unit.
|
int |
getSamplesPerPixel()
Gets or sets the samples per pixel.
|
String |
getSoftware()
Gets or sets the software.
|
RasterImage |
getThumbnail()
Gets or sets the thumbnail image.
|
int[] |
getTransferFunction()
Gets or sets the transfer function.
|
TiffRational |
getXResolution()
Gets or sets the x resolution.
|
TiffRational[] |
getYCbCrCoefficients()
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
|
int |
getYCbCrPositioning()
Gets or sets the position of chrominance components in relation to the luminance component.
|
int[] |
getYCbCrSubSampling()
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
|
TiffRational |
getYResolution()
Gets or sets the y resolution.
|
byte[] |
serializeExifData()
Serializes the EXIF data.
|
void |
setArtist(String value)
Gets or sets the artist.
|
void |
setBitsPerSample(int[] value)
Gets or sets the bits per sample.
|
void |
setCompression(int value)
Gets or sets the compression.
|
void |
setCopyright(String value)
Gets or sets the copyright.
|
void |
setDateTime(String value)
Gets or sets the date time.
|
void |
setImageDescription(String value)
Gets or sets the image description.
|
void |
setImageLength(long value)
Gets or sets the image length.
|
void |
setImageWidth(long value)
Gets or sets the image width.
|
void |
setMake(String value)
Gets or sets the manufacturer of the recording equipment.
|
void |
setModel(String value)
Gets or sets the model.
|
void |
setOrientation(int value)
Gets or sets the orientation.
|
void |
setPhotometricInterpretation(int value)
Gets or sets the photometric interpretation.
|
void |
setPlanarConfiguration(int value)
Gets or sets the planar configuration.
|
void |
setPrimaryChromaticities(TiffRational[] value)
Gets or sets the chromaticity of the three primary colors of the image.
|
void |
setReferenceBlackWhite(TiffRational[] value)
Gets or sets the reference black white.
|
void |
setResolutionUnit(int value)
Gets or sets the resolution unit.
|
void |
setSamplesPerPixel(int value)
Gets or sets the samples per pixel.
|
void |
setSoftware(String value)
Gets or sets the software.
|
void |
setThumbnail(RasterImage value)
Gets or sets the thumbnail image.
|
void |
setTransferFunction(int[] value)
Gets or sets the transfer function.
|
void |
setXResolution(TiffRational value)
Gets or sets the x resolution.
|
void |
setYCbCrCoefficients(TiffRational[] value)
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
|
void |
setYCbCrPositioning(int value)
Gets or sets the position of chrominance components in relation to the luminance component.
|
void |
setYCbCrSubSampling(int[] value)
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
|
void |
setYResolution(TiffRational value)
Gets or sets the y resolution.
|
getApertureValue, getBodySerialNumber, getBrightnessValue, getCameraOwnerName, getCFAPattern, getColorSpace, getCommonTags, getComponentsConfiguration, getCompressedBitsPerPixel, getContrast, getCustomRendered, getDateTimeDigitized, getDateTimeOriginal, getDeviceSettingDescription, getDigitalZoomRatio, getExifTags, getExifVersion, getExposureBiasValue, getExposureIndex, getExposureMode, getExposureProgram, getExposureTime, getFileSource, getFlash, getFlashEnergy, getFlashpixVersion, getFNumber, getFocalLength, getFocalLengthIn35MmFilm, getFocalPlaneResolutionUnit, getFocalPlaneXResolution, getFocalPlaneYResolution, getGainControl, getGamma, getGPSAltitude, getGPSAltitudeRef, getGPSAreaInformation, getGPSDateStamp, getGPSDestBearing, getGPSDestBearingRef, getGPSDestDistance, getGPSDestDistanceRef, getGPSDestLatitude, getGPSDestLatitudeRef, getGPSDestLongitude, getGPSDestLongitudeRef, getGPSDifferential, getGPSDOP, getGPSImgDirection, getGPSImgDirectionRef, getGPSLatitude, getGPSLatitudeRef, getGPSLongitude, getGPSLongitudeRef, getGPSMapDatum, getGPSMeasureMode, getGPSProcessingMethod, getGPSSatellites, getGPSSpeed, getGPSSpeedRef, getGPSStatus, getGPSTags, getGPSTimestamp, getGPSTrack, getGPSTrackRef, getGPSVersionID, getImageUniqueID, getISOSpeed, getISOSpeedLatitudeYYY, getISOSpeedLatitudeZZZ, getLensMake, getLensModel, getLensSerialNumber, getLensSpecification, getLightSource, getMakerNoteData, getMakerNoteRawData, getMaxApertureValue, getMeteringMode, getOECF, getPhotographicSensitivity, getPixelXDimension, getPixelYDimension, getProperties, getRecommendedExposureIndex, getRelatedSoundFile, getSaturation, getSceneCaptureType, getSceneType, getSensingMethod, getSensitivityType, getSharpness, getShutterSpeedValue, getSpatialFrequencyResponse, getSpectralSensitivity, getStandardOutputSensitivity, getSubjectArea, getSubjectDistance, getSubjectDistanceRange, getSubjectLocation, getSubsecTime, getSubsecTimeDigitized, getSubsecTimeOriginal, getUserComment, getWhiteBalance, getWhitePoint, isBigEndian, removeTag, setApertureValue, setBigEndian, setBodySerialNumber, setBrightnessValue, setCameraOwnerName, setCFAPattern, setColorSpace, setCommonTags, setComponentsConfiguration, setCompressedBitsPerPixel, setContrast, setCustomRendered, setDateTimeDigitized, setDateTimeOriginal, setDeviceSettingDescription, setDigitalZoomRatio, setExifTags, setExifVersion, setExposureBiasValue, setExposureIndex, setExposureMode, setExposureProgram, setExposureTime, setFileSource, setFlash, setFlashEnergy, setFlashpixVersion, setFNumber, setFocalLength, setFocalLengthIn35MmFilm, setFocalPlaneResolutionUnit, setFocalPlaneXResolution, setFocalPlaneYResolution, setGainControl, setGamma, setGPSAltitude, setGPSAltitudeRef, setGPSAreaInformation, setGPSDateStamp, setGPSDestBearing, setGPSDestBearingRef, setGPSDestDistance, setGPSDestDistanceRef, setGPSDestLatitude, setGPSDestLatitudeRef, setGPSDestLongitude, setGPSDestLongitudeRef, setGPSDifferential, setGPSDOP, setGPSImgDirection, setGPSImgDirectionRef, setGPSLatitude, setGPSLatitudeRef, setGPSLongitude, setGPSLongitudeRef, setGPSMapDatum, setGPSMeasureMode, setGPSProcessingMethod, setGPSSatellites, setGPSSpeed, setGPSSpeedRef, setGPSStatus, setGPSTags, setGPSTimestamp, setGPSTrack, setGPSTrackRef, setGPSVersionID, setImageUniqueID, setISOSpeed, setISOSpeedLatitudeYYY, setISOSpeedLatitudeZZZ, setLensMake, setLensModel, setLensSerialNumber, setLensSpecification, setLightSource, setMakerNoteRawData, setMaxApertureValue, setMeteringMode, setOECF, setPhotographicSensitivity, setPixelXDimension, setPixelYDimension, setProperties, setRecommendedExposureIndex, setRelatedSoundFile, setSaturation, setSceneCaptureType, setSceneType, setSensingMethod, setSensitivityType, setSharpness, setShutterSpeedValue, setSpatialFrequencyResponse, setSpectralSensitivity, setStandardOutputSensitivity, setSubjectArea, setSubjectDistance, setSubjectDistanceRange, setSubjectLocation, setSubsecTime, setSubsecTimeDigitized, setSubsecTimeOriginal, setUserComment, setWhiteBalance, setWhitePoint
public static final int MAX_EXIF_SEGMENT_SIZE
The maximum EXIF segment size in bytes allowed.
public JpegExifData()
Initializes a new instance of the JpegExifData
class.
public JpegExifData(TiffDataType[] exifdata)
Initializes a new instance of the JpegExifData
class with data from array.
exifdata
- Array of EXIF tags together with common and GPS tags.public JpegExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)
Initializes a new instance of the JpegExifData
class with data from array.
commonTags
- The common tags.exifTags
- The EXIF tags.gpsTags
- The GPS tags.public String getArtist()
Gets or sets the artist.
Value: The artist.public void setArtist(String value)
Gets or sets the artist.
Value: The artist.public int[] getBitsPerSample()
Gets or sets the bits per sample.
Value: The bits per sample.public void setBitsPerSample(int[] value)
Gets or sets the bits per sample.
Value: The bits per sample.public int getCompression()
Gets or sets the compression.
Value: The compression.public void setCompression(int value)
Gets or sets the compression.
Value: The compression.public String getCopyright()
Gets or sets the copyright.
Value: The copyright.public void setCopyright(String value)
Gets or sets the copyright.
Value: The copyright.public String getDateTime()
Gets or sets the date time.
Value: The date time.public void setDateTime(String value)
Gets or sets the date time.
Value: The date time.public String getImageDescription()
Gets or sets the image description.
Value: The image description.public void setImageDescription(String value)
Gets or sets the image description.
Value: The image description.public long getImageLength()
Gets or sets the image length.
Value: The length of the image.public void setImageLength(long value)
Gets or sets the image length.
Value: The length of the image.public long getImageWidth()
Gets or sets the image width.
Value: The width of the image.public void setImageWidth(long value)
Gets or sets the image width.
Value: The width of the image.public String getMake()
Gets or sets the manufacturer of the recording equipment.
Value: The manufacturer of the recording equipment.public void setMake(String value)
Gets or sets the manufacturer of the recording equipment.
Value: The manufacturer of the recording equipment.public String getModel()
Gets or sets the model.
Value: The model.public void setModel(String value)
Gets or sets the model.
Value: The model.public int getOrientation()
Gets or sets the orientation.
Value: The orientation.public void setOrientation(int value)
Gets or sets the orientation.
Value: The orientation.public int getPhotometricInterpretation()
Gets or sets the photometric interpretation.
Value: The photometric interpretation.public void setPhotometricInterpretation(int value)
Gets or sets the photometric interpretation.
Value: The photometric interpretation.public int getPlanarConfiguration()
Gets or sets the planar configuration.
Value: The planar configuration.public void setPlanarConfiguration(int value)
Gets or sets the planar configuration.
Value: The planar configuration.public TiffRational[] getPrimaryChromaticities()
Gets or sets the chromaticity of the three primary colors of the image.
Value: The chromaticity of the three primary colors of the image.public void setPrimaryChromaticities(TiffRational[] value)
Gets or sets the chromaticity of the three primary colors of the image.
Value: The chromaticity of the three primary colors of the image.public TiffRational[] getReferenceBlackWhite()
Gets or sets the reference black white.
Value: The reference black white.public void setReferenceBlackWhite(TiffRational[] value)
Gets or sets the reference black white.
Value: The reference black white.public int getResolutionUnit()
Gets or sets the resolution unit.
Value: The resolution unit.public void setResolutionUnit(int value)
Gets or sets the resolution unit.
Value: The resolution unit.public int getSamplesPerPixel()
Gets or sets the samples per pixel.
Value: The samples per pixel.public void setSamplesPerPixel(int value)
Gets or sets the samples per pixel.
Value: The samples per pixel.public String getSoftware()
Gets or sets the software.
Value: The software.public void setSoftware(String value)
Gets or sets the software.
Value: The software.public RasterImage getThumbnail()
Gets or sets the thumbnail image.
Value: The thumbnail.public void setThumbnail(RasterImage value)
Gets or sets the thumbnail image.
Value: The thumbnail.public int[] getTransferFunction()
Gets or sets the transfer function.
Value: The transfer function.public void setTransferFunction(int[] value)
Gets or sets the transfer function.
Value: The transfer function.public TiffRational getXResolution()
Gets or sets the x resolution.
Value: The x resolution.public void setXResolution(TiffRational value)
Gets or sets the x resolution.
Value: The x resolution.public TiffRational[] getYCbCrCoefficients()
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
Value: The matrix coefficients for transformation from RGB to YCbCr image data.public void setYCbCrCoefficients(TiffRational[] value)
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
Value: The matrix coefficients for transformation from RGB to YCbCr image data.public int getYCbCrPositioning()
Gets or sets the position of chrominance components in relation to the luminance component.
Value: The position of chrominance components in relation to the luminance component.public void setYCbCrPositioning(int value)
Gets or sets the position of chrominance components in relation to the luminance component.
Value: The position of chrominance components in relation to the luminance component.public int[] getYCbCrSubSampling()
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
Value: The sampling ratio of chrominance components in relation to the luminance component.public void setYCbCrSubSampling(int[] value)
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
Value: The sampling ratio of chrominance components in relation to the luminance component.public TiffRational getYResolution()
Gets or sets the y resolution.
Value: The y resolution.public void setYResolution(TiffRational value)
Gets or sets the y resolution.
Value: The y resolution.public byte[] serializeExifData()
Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents.
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.