JpegExifData
Inheritance: java.lang.Object, com.aspose.cad.exif.ExifData
EXIF data container for jpeg files.
Constructors
| Constructor | Description |
|---|---|
| JpegExifData() | Initializes a new instance of the JpegExifData class. |
| JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] exifdata) | Initializes a new instance of the JpegExifData class with data from array. |
| JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] commonTags, com.aspose.cad.fileformats.tiff.TiffDataType[] exifTags, com.aspose.cad.fileformats.tiff.TiffDataType[] gpsTags) | 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(com.aspose.cad.fileformats.tiff.TiffRational[] value) | Gets or sets the chromaticity of the three primary colors of the image. |
| getReferenceBlackWhite() | Gets or sets the reference black white. |
| setReferenceBlackWhite(com.aspose.cad.fileformats.tiff.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(com.aspose.cad.fileformats.tiff.TiffRational value) | Gets or sets the x resolution. |
| getYCbCrCoefficients() | Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data. |
| setYCbCrCoefficients(com.aspose.cad.fileformats.tiff.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(com.aspose.cad.fileformats.tiff.TiffRational value) | Gets or sets the y resolution. |
| serializeExifData() | Serializes the EXIF data. Writes the tags values and contents. The most influencing size tag is Thumbnail tag contents. |
JpegExifData()
public JpegExifData()
Initializes a new instance of the JpegExifData class.
JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] exifdata)
public JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] exifdata)
Initializes a new instance of the JpegExifData class with data from array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| exifdata | com.aspose.cad.fileformats.tiff.TiffDataType[] | Array of EXIF tags together with common and GPS tags. |
JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] commonTags, com.aspose.cad.fileformats.tiff.TiffDataType[] exifTags, com.aspose.cad.fileformats.tiff.TiffDataType[] gpsTags)
public JpegExifData(com.aspose.cad.fileformats.tiff.TiffDataType[] commonTags, com.aspose.cad.fileformats.tiff.TiffDataType[] exifTags, com.aspose.cad.fileformats.tiff.TiffDataType[] gpsTags)
Initializes a new instance of the JpegExifData class with data from array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| commonTags | com.aspose.cad.fileformats.tiff.TiffDataType[] | The common tags. |
| exifTags | com.aspose.cad.fileformats.tiff.TiffDataType[] | The EXIF tags. |
| gpsTags | com.aspose.cad.fileformats.tiff.TiffDataType[] | The GPS tags. |
MAX_EXIF_SEGMENT_SIZE
public static final int MAX_EXIF_SEGMENT_SIZE
The maximum EXIF segment size in bytes allowed.
Returns: int
getArtist()
public String getArtist()
Gets or sets the artist.
Returns: String - The artist.
setArtist(String value)
public void setArtist(String value)
Gets or sets the artist.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The artist. |
getBitsPerSample()
public int[] getBitsPerSample()
Gets or sets the bits per sample.
Returns: int[] - The bits per sample.
setBitsPerSample(int[] value)
public void setBitsPerSample(int[] value)
Gets or sets the bits per sample.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int[] | The bits per sample. |
getCompression()
public int getCompression()
Gets or sets the compression.
Returns: int - The compression.
setCompression(int value)
public void setCompression(int value)
Gets or sets the compression.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The compression. |
getCopyright()
public String getCopyright()
Gets or sets the copyright.
Returns: String - The copyright.
setCopyright(String value)
public void setCopyright(String value)
Gets or sets the copyright.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The copyright. |
getDateTime()
public String getDateTime()
Gets or sets the date time.
Returns: String - The date time.
setDateTime(String value)
public void setDateTime(String value)
Gets or sets the date time.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The date time. |
getImageDescription()
public String getImageDescription()
Gets or sets the image description.
Returns: String - The image description.
setImageDescription(String value)
public void setImageDescription(String value)
Gets or sets the image description.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The image description. |
getImageLength()
public long getImageLength()
Gets or sets the image length.
Returns: long - The length of the image.
setImageLength(long value)
public void setImageLength(long value)
Gets or sets the image length.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | long | The length of the image. |
getImageWidth()
public long getImageWidth()
Gets or sets the image width.
Returns: long - The width of the image.
setImageWidth(long value)
public void setImageWidth(long value)
Gets or sets the image width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | long | The width of the image. |
getModel()
public String getModel()
Gets or sets the model.
Returns: String - The model.
setModel(String value)
public void setModel(String value)
Gets or sets the model.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The model. |
getOrientation()
public int getOrientation()
Gets or sets the orientation.
Returns: int - The orientation.
setOrientation(int value)
public void setOrientation(int value)
Gets or sets the orientation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The orientation. |
getPhotometricInterpretation()
public int getPhotometricInterpretation()
Gets or sets the photometric interpretation.
Returns: int - The photometric interpretation.
setPhotometricInterpretation(int value)
public void setPhotometricInterpretation(int value)
Gets or sets the photometric interpretation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The photometric interpretation. |
getPlanarConfiguration()
public int getPlanarConfiguration()
Gets or sets the planar configuration.
Returns: int - The planar configuration.
setPlanarConfiguration(int value)
public void setPlanarConfiguration(int value)
Gets or sets the planar configuration.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The planar configuration. |
getPrimaryChromaticities()
public com.aspose.cad.fileformats.tiff.TiffRational[] getPrimaryChromaticities()
Gets or sets the chromaticity of the three primary colors of the image.
Returns: com.aspose.cad.fileformats.tiff.TiffRational[] - The chromaticity of the three primary colors of the image.
setPrimaryChromaticities(com.aspose.cad.fileformats.tiff.TiffRational[] value)
public void setPrimaryChromaticities(com.aspose.cad.fileformats.tiff.TiffRational[] value)
Gets or sets the chromaticity of the three primary colors of the image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.fileformats.tiff.TiffRational[] | The chromaticity of the three primary colors of the image. |
getReferenceBlackWhite()
public com.aspose.cad.fileformats.tiff.TiffRational[] getReferenceBlackWhite()
Gets or sets the reference black white.
Returns: com.aspose.cad.fileformats.tiff.TiffRational[] - The reference black white.
setReferenceBlackWhite(com.aspose.cad.fileformats.tiff.TiffRational[] value)
public void setReferenceBlackWhite(com.aspose.cad.fileformats.tiff.TiffRational[] value)
Gets or sets the reference black white.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.fileformats.tiff.TiffRational[] | The reference black white. |
getResolutionUnit()
public int getResolutionUnit()
Gets or sets the resolution unit.
Returns: int - The resolution unit.
setResolutionUnit(int value)
public void setResolutionUnit(int value)
Gets or sets the resolution unit.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The resolution unit. |
getSamplesPerPixel()
public int getSamplesPerPixel()
Gets or sets the samples per pixel.
Returns: int - The samples per pixel.
setSamplesPerPixel(int value)
public void setSamplesPerPixel(int value)
Gets or sets the samples per pixel.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The samples per pixel. |
getSoftware()
public String getSoftware()
Gets or sets the software.
Returns: String - The software.
setSoftware(String value)
public void setSoftware(String value)
Gets or sets the software.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | String | The software. |
getThumbnail()
public RasterImage getThumbnail()
Gets or sets the thumbnail image.
Returns: RasterImage - The thumbnail.
setThumbnail(RasterImage value)
public void setThumbnail(RasterImage value)
Gets or sets the thumbnail image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | RasterImage | The thumbnail. |
getTransferFunction()
public int[] getTransferFunction()
Gets or sets the transfer function.
Returns: int[] - The transfer function.
setTransferFunction(int[] value)
public void setTransferFunction(int[] value)
Gets or sets the transfer function.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int[] | The transfer function. |
getXResolution()
public com.aspose.cad.fileformats.tiff.TiffRational getXResolution()
Gets or sets the x resolution.
Returns: com.aspose.cad.fileformats.tiff.TiffRational - The x resolution.
setXResolution(com.aspose.cad.fileformats.tiff.TiffRational value)
public void setXResolution(com.aspose.cad.fileformats.tiff.TiffRational value)
Gets or sets the x resolution.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.fileformats.tiff.TiffRational | The x resolution. |
getYCbCrCoefficients()
public com.aspose.cad.fileformats.tiff.TiffRational[] getYCbCrCoefficients()
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
Returns: com.aspose.cad.fileformats.tiff.TiffRational[] - The matrix coefficients for transformation from RGB to YCbCr image data.
setYCbCrCoefficients(com.aspose.cad.fileformats.tiff.TiffRational[] value)
public void setYCbCrCoefficients(com.aspose.cad.fileformats.tiff.TiffRational[] value)
Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.fileformats.tiff.TiffRational[] | The matrix coefficients for transformation from RGB to YCbCr image data. |
getYCbCrPositioning()
public int getYCbCrPositioning()
Gets or sets the position of chrominance components in relation to the luminance component.
Returns: int - The position of chrominance components in relation to the luminance component.
setYCbCrPositioning(int value)
public void setYCbCrPositioning(int value)
Gets or sets the position of chrominance components in relation to the luminance component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The position of chrominance components in relation to the luminance component. |
getYCbCrSubSampling()
public int[] getYCbCrSubSampling()
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
Returns: int[] - The sampling ratio of chrominance components in relation to the luminance component.
setYCbCrSubSampling(int[] value)
public void setYCbCrSubSampling(int[] value)
Gets or sets the sampling ratio of chrominance components in relation to the luminance component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int[] | The sampling ratio of chrominance components in relation to the luminance component. |
getYResolution()
public com.aspose.cad.fileformats.tiff.TiffRational getYResolution()
Gets or sets the y resolution.
Returns: com.aspose.cad.fileformats.tiff.TiffRational - The y resolution.
setYResolution(com.aspose.cad.fileformats.tiff.TiffRational value)
public void setYResolution(com.aspose.cad.fileformats.tiff.TiffRational value)
Gets or sets the y resolution.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.fileformats.tiff.TiffRational | The y resolution. |
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.