JpegExifData

Inheritance: java.lang.Object, com.aspose.imaging.exif.TiffDataTypeController, com.aspose.imaging.exif.ExifData

public final class JpegExifData extends ExifData

EXIF data container for jpeg files.

Constructors

ConstructorDescription
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.
JpegExifData(ExifData exifdata)Initializes a new instance of the JpegExifData class with data from array.

Fields

FieldDescription
MAX_EXIF_SEGMENT_SIZEThe maximum EXIF segment size in bytes allowed.

Methods

MethodDescription
getArtist()Gets or sets the artist.
setArtist(String value)Gets or sets the artist.
getBitsPerSample()Gets or sets the bits per sample.
setBitsPerSample(int[] value)Gets or sets the bits per sample.
getCompression()Gets or sets the compression.
setCompression(int value)Gets or sets the compression.
getCopyright()Gets or sets the copyright.
setCopyright(String value)Gets or sets the copyright.
getDateTime()Gets or sets the date time.
setDateTime(String value)Gets or sets the date time.
getImageDescription()Gets or sets the image description.
setImageDescription(String value)Gets or sets the image description.
getImageLength()Gets or sets the image length.
setImageLength(long value)Gets or sets the image length.
getImageWidth()Gets or sets the image width.
setImageWidth(long value)Gets or sets the image width.
getModel()Gets or sets the model.
setModel(String value)Gets or sets the model.
getOrientation()Gets or sets the orientation.
setOrientation(int value)Gets or sets the orientation.
getPhotometricInterpretation()Gets or sets the photometric interpretation.
setPhotometricInterpretation(int value)Gets or sets the photometric interpretation.
getPlanarConfiguration()Gets or sets the planar configuration.
setPlanarConfiguration(int value)Gets or sets the planar configuration.
getPrimaryChromaticities()Gets or sets the chromaticity of the three primary colors of the image.
setPrimaryChromaticities(TiffRational[] value)Gets or sets the chromaticity of the three primary colors of the image.
getReferenceBlackWhite()Gets or sets the reference black white.
setReferenceBlackWhite(TiffRational[] value)Gets or sets the reference black white.
getResolutionUnit()Gets or sets the resolution unit.
setResolutionUnit(int value)Gets or sets the resolution unit.
getSamplesPerPixel()Gets or sets the samples per pixel.
setSamplesPerPixel(int value)Gets or sets the samples per pixel.
getSoftware()Gets or sets the software.
setSoftware(String value)Gets or sets the software.
getThumbnail()Gets or sets the thumbnail image.
setThumbnail(RasterImage value)Gets or sets the thumbnail image.
getTransferFunction()Gets or sets the transfer function.
setTransferFunction(int[] value)Gets or sets the transfer function.
getXResolution()Gets or sets the x resolution.
setXResolution(TiffRational value)Gets or sets the x resolution.
getYCbCrCoefficients()Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
setYCbCrCoefficients(TiffRational[] value)Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
getYCbCrPositioning()Gets or sets the position of chrominance components in relation to the luminance component.
setYCbCrPositioning(int value)Gets or sets the position of chrominance components in relation to the luminance component.
getYCbCrSubSampling()Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
setYCbCrSubSampling(int[] value)Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
getYResolution()Gets or sets the y resolution.
setYResolution(TiffRational value)Gets or sets the y resolution.
serializeExifData()Serializes the EXIF data.

JpegExifData()

public JpegExifData()

Initializes a new instance of the JpegExifData class.

JpegExifData(TiffDataType[] exifdata)

public JpegExifData(TiffDataType[] exifdata)

Initializes a new instance of the JpegExifData class with data from array.

Parameters:

ParameterTypeDescription
exifdataTiffDataType[]Array of EXIF tags together with common and GPS tags.

JpegExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)

public JpegExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)

Initializes a new instance of the JpegExifData class with data from array.

Parameters:

ParameterTypeDescription
commonTagsTiffDataType[]The common tags.
exifTagsTiffDataType[]The EXIF tags.
gpsTagsTiffDataType[]The GPS tags.

JpegExifData(ExifData exifdata)

public JpegExifData(ExifData exifdata)

Initializes a new instance of the JpegExifData class with data from array.

Parameters:

ParameterTypeDescription
exifdataExifDataArray of EXIF tags together with common and GPS tags.

MAX_EXIF_SEGMENT_SIZE

public static final int MAX_EXIF_SEGMENT_SIZE

The maximum EXIF segment size in bytes allowed.

getArtist()

public String getArtist()

Gets or sets the artist.

Value: The artist.

Returns: java.lang.String

setArtist(String value)

public void setArtist(String value)

Gets or sets the artist.

Value: The artist.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getBitsPerSample()

public int[] getBitsPerSample()

Gets or sets the bits per sample.

Value: The bits per sample.

Returns: int[]

setBitsPerSample(int[] value)

public void setBitsPerSample(int[] value)

Gets or sets the bits per sample.

Value: The bits per sample.

Parameters:

ParameterTypeDescription
valueint[]

getCompression()

public int getCompression()

Gets or sets the compression.

Value: The compression.

Returns: int

setCompression(int value)

public void setCompression(int value)

Gets or sets the compression.

Value: The compression.

Parameters:

ParameterTypeDescription
valueint

getCopyright()

public String getCopyright()

Gets or sets the copyright.

Value: The copyright.

Returns: java.lang.String

setCopyright(String value)

public void setCopyright(String value)

Gets or sets the copyright.

Value: The copyright.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getDateTime()

public String getDateTime()

Gets or sets the date time.

Value: The date time.

Returns: java.lang.String

setDateTime(String value)

public void setDateTime(String value)

Gets or sets the date time.

Value: The date time.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getImageDescription()

public String getImageDescription()

Gets or sets the image description.

Value: The image description.

Returns: java.lang.String

setImageDescription(String value)

public void setImageDescription(String value)

Gets or sets the image description.

Value: The image description.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getImageLength()

public long getImageLength()

Gets or sets the image length.

Value: The length of the image.

Returns: long

setImageLength(long value)

public void setImageLength(long value)

Gets or sets the image length.

Value: The length of the image.

Parameters:

ParameterTypeDescription
valuelong

getImageWidth()

public long getImageWidth()

Gets or sets the image width.

Value: The width of the image.

Returns: long

setImageWidth(long value)

public void setImageWidth(long value)

Gets or sets the image width.

Value: The width of the image.

Parameters:

ParameterTypeDescription
valuelong

getModel()

public String getModel()

Gets or sets the model.

Value: The model.

Returns: java.lang.String

setModel(String value)

public void setModel(String value)

Gets or sets the model.

Value: The model.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getOrientation()

public int getOrientation()

Gets or sets the orientation.

Value: The orientation.

Returns: int

setOrientation(int value)

public void setOrientation(int value)

Gets or sets the orientation.

Value: The orientation.

Parameters:

ParameterTypeDescription
valueint

getPhotometricInterpretation()

public int getPhotometricInterpretation()

Gets or sets the photometric interpretation.

Value: The photometric interpretation.

Returns: int

setPhotometricInterpretation(int value)

public void setPhotometricInterpretation(int value)

Gets or sets the photometric interpretation.

Value: The photometric interpretation.

Parameters:

ParameterTypeDescription
valueint

getPlanarConfiguration()

public int getPlanarConfiguration()

Gets or sets the planar configuration.

Value: The planar configuration.

Returns: int

setPlanarConfiguration(int value)

public void setPlanarConfiguration(int value)

Gets or sets the planar configuration.

Value: The planar configuration.

Parameters:

ParameterTypeDescription
valueint

getPrimaryChromaticities()

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.

Returns: com.aspose.imaging.fileformats.tiff.TiffRational[]

setPrimaryChromaticities(TiffRational[] value)

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.

Parameters:

ParameterTypeDescription
valueTiffRational[]

getReferenceBlackWhite()

public TiffRational[] getReferenceBlackWhite()

Gets or sets the reference black white.

Value: The reference black white.

Returns: com.aspose.imaging.fileformats.tiff.TiffRational[]

setReferenceBlackWhite(TiffRational[] value)

public void setReferenceBlackWhite(TiffRational[] value)

Gets or sets the reference black white.

Value: The reference black white.

Parameters:

ParameterTypeDescription
valueTiffRational[]

getResolutionUnit()

public int getResolutionUnit()

Gets or sets the resolution unit.

Value: The resolution unit.

Returns: int

setResolutionUnit(int value)

public void setResolutionUnit(int value)

Gets or sets the resolution unit.

Value: The resolution unit.

Parameters:

ParameterTypeDescription
valueint

getSamplesPerPixel()

public int getSamplesPerPixel()

Gets or sets the samples per pixel.

Value: The samples per pixel.

Returns: int

setSamplesPerPixel(int value)

public void setSamplesPerPixel(int value)

Gets or sets the samples per pixel.

Value: The samples per pixel.

Parameters:

ParameterTypeDescription
valueint

getSoftware()

public String getSoftware()

Gets or sets the software.

Value: The software.

Returns: java.lang.String

setSoftware(String value)

public void setSoftware(String value)

Gets or sets the software.

Value: The software.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getThumbnail()

public RasterImage getThumbnail()

Gets or sets the thumbnail image.

Value: The thumbnail.

Returns: RasterImage

setThumbnail(RasterImage value)

public void setThumbnail(RasterImage value)

Gets or sets the thumbnail image.

Value: The thumbnail.

Parameters:

ParameterTypeDescription
valueRasterImage

getTransferFunction()

public int[] getTransferFunction()

Gets or sets the transfer function.

Value: The transfer function.

Returns: int[]

setTransferFunction(int[] value)

public void setTransferFunction(int[] value)

Gets or sets the transfer function.

Value: The transfer function.

Parameters:

ParameterTypeDescription
valueint[]

getXResolution()

public TiffRational getXResolution()

Gets or sets the x resolution.

Value: The x resolution.

Returns: TiffRational

setXResolution(TiffRational value)

public void setXResolution(TiffRational value)

Gets or sets the x resolution.

Value: The x resolution.

Parameters:

ParameterTypeDescription
valueTiffRational

getYCbCrCoefficients()

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.

Returns: com.aspose.imaging.fileformats.tiff.TiffRational[]

setYCbCrCoefficients(TiffRational[] value)

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.

Parameters:

ParameterTypeDescription
valueTiffRational[]

getYCbCrPositioning()

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.

Returns: int

setYCbCrPositioning(int value)

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.

Parameters:

ParameterTypeDescription
valueint

getYCbCrSubSampling()

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.

Returns: int[]

setYCbCrSubSampling(int[] value)

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.

Parameters:

ParameterTypeDescription
valueint[]

getYResolution()

public TiffRational getYResolution()

Gets or sets the y resolution.

Value: The y resolution.

Returns: TiffRational

setYResolution(TiffRational value)

public void setYResolution(TiffRational value)

Gets or sets the y resolution.

Value: The y resolution.

Parameters:

ParameterTypeDescription
valueTiffRational

serializeExifData()

public byte[] serializeExifData()

Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents.

Returns: byte[] - The serialized EXIF data.

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.