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
Constructor | 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. |
JpegExifData(ExifData exifdata) | Initializes a new instance of the JpegExifData class with data from array. |
Fields
Field | Description |
---|---|
MAX_EXIF_SEGMENT_SIZE | The maximum EXIF segment size in bytes allowed. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
exifdata | TiffDataType[] | 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:
Parameter | Type | Description |
---|---|---|
commonTags | TiffDataType[] | The common tags. |
exifTags | TiffDataType[] | The EXIF tags. |
gpsTags | TiffDataType[] | The GPS tags. |
JpegExifData(ExifData exifdata)
public JpegExifData(ExifData exifdata)
Initializes a new instance of the JpegExifData class with data from array.
Parameters:
Parameter | Type | Description |
---|---|---|
exifdata | ExifData | Array 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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | int[] |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | long |
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:
Parameter | Type | Description |
---|---|---|
value | long |
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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | TiffRational[] |
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:
Parameter | Type | Description |
---|---|---|
value | TiffRational[] |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | RasterImage |
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:
Parameter | Type | Description |
---|---|---|
value | int[] |
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:
Parameter | Type | Description |
---|---|---|
value | TiffRational |
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:
Parameter | Type | Description |
---|---|---|
value | TiffRational[] |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int[] |
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:
Parameter | Type | Description |
---|---|---|
value | TiffRational |
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.