Packages

 

com.aspose.cad.exif

Class JpegExifData



  • public final class JpegExifData
    extends ExifData

    EXIF data container for jpeg files.

    • Field Detail

      • MAX_EXIF_SEGMENT_SIZE

        public static final int MAX_EXIF_SEGMENT_SIZE

        The maximum EXIF segment size in bytes allowed.

        See Also:
        Constant Field Values
    • Constructor Detail

      • JpegExifData

        public JpegExifData()

        Initializes a new instance of the JpegExifData class.

      • JpegExifData

        public JpegExifData(TiffDataType[] exifdata)

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

        Parameters:
        exifdata - Array of EXIF tags together with common and GPS tags.
      • JpegExifData

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

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

        Parameters:
        commonTags - The common tags.
        exifTags - The EXIF tags.
        gpsTags - The GPS tags.
    • Method Detail

      • getArtist

        public String getArtist()

        Gets or sets the artist.

        Returns:
        The artist.
      • setArtist

        public void setArtist(String value)

        Gets or sets the artist.

        Parameters:
        value - The artist.
      • getBitsPerSample

        public int[] getBitsPerSample()

        Gets or sets the bits per sample.

        Returns:
        The bits per sample.
      • setBitsPerSample

        public void setBitsPerSample(int[] value)

        Gets or sets the bits per sample.

        Parameters:
        value - The bits per sample.
      • getCompression

        public int getCompression()

        Gets or sets the compression.

        Returns:
        The compression.
      • setCompression

        public void setCompression(int value)

        Gets or sets the compression.

        Parameters:
        value - The compression.
      • getCopyright

        public String getCopyright()

        Gets or sets the copyright.

        Returns:
        The copyright.
      • setCopyright

        public void setCopyright(String value)

        Gets or sets the copyright.

        Parameters:
        value - The copyright.
      • getDateTime

        public String getDateTime()

        Gets or sets the date time.

        Returns:
        The date time.
      • setDateTime

        public void setDateTime(String value)

        Gets or sets the date time.

        Parameters:
        value - The date time.
      • getImageDescription

        public String getImageDescription()

        Gets or sets the image description.

        Returns:
        The image description.
      • setImageDescription

        public void setImageDescription(String value)

        Gets or sets the image description.

        Parameters:
        value - The image description.
      • getImageLength

        public long getImageLength()

        Gets or sets the image length.

        Returns:
        The length of the image.
      • setImageLength

        public void setImageLength(long value)

        Gets or sets the image length.

        Parameters:
        value - The length of the image.
      • getImageWidth

        public long getImageWidth()

        Gets or sets the image width.

        Returns:
        The width of the image.
      • setImageWidth

        public void setImageWidth(long value)

        Gets or sets the image width.

        Parameters:
        value - The width of the image.
      • getMake

        public String getMake()

        Gets or sets the manufacturer of the recording equipment.

        Returns:
        The manufacturer of the recording equipment.
      • setMake

        public void setMake(String value)

        Gets or sets the manufacturer of the recording equipment.

        Parameters:
        value - The manufacturer of the recording equipment.
      • getModel

        public String getModel()

        Gets or sets the model.

        Returns:
        The model.
      • setModel

        public void setModel(String value)

        Gets or sets the model.

        Parameters:
        value - The model.
      • getOrientation

        public int getOrientation()

        Gets or sets the orientation.

        Returns:
        The orientation.
      • setOrientation

        public void setOrientation(int value)

        Gets or sets the orientation.

        Parameters:
        value - The orientation.
      • getPhotometricInterpretation

        public int getPhotometricInterpretation()

        Gets or sets the photometric interpretation.

        Returns:
        The photometric interpretation.
      • setPhotometricInterpretation

        public void setPhotometricInterpretation(int value)

        Gets or sets the photometric interpretation.

        Parameters:
        value - The photometric interpretation.
      • getPlanarConfiguration

        public int getPlanarConfiguration()

        Gets or sets the planar configuration.

        Returns:
        The planar configuration.
      • setPlanarConfiguration

        public void setPlanarConfiguration(int value)

        Gets or sets the planar configuration.

        Parameters:
        value - The planar configuration.
      • getPrimaryChromaticities

        public TiffRational[] getPrimaryChromaticities()

        Gets or sets the chromaticity of the three primary colors of the image.

        Returns:
        The chromaticity of the three primary colors of the image.
      • setPrimaryChromaticities

        public void setPrimaryChromaticities(TiffRational[] value)

        Gets or sets the chromaticity of the three primary colors of the image.

        Parameters:
        value - The chromaticity of the three primary colors of the image.
      • getReferenceBlackWhite

        public TiffRational[] getReferenceBlackWhite()

        Gets or sets the reference black white.

        Returns:
        The reference black white.
      • setReferenceBlackWhite

        public void setReferenceBlackWhite(TiffRational[] value)

        Gets or sets the reference black white.

        Parameters:
        value - The reference black white.
      • getResolutionUnit

        public int getResolutionUnit()

        Gets or sets the resolution unit.

        Returns:
        The resolution unit.
      • setResolutionUnit

        public void setResolutionUnit(int value)

        Gets or sets the resolution unit.

        Parameters:
        value - The resolution unit.
      • getSamplesPerPixel

        public int getSamplesPerPixel()

        Gets or sets the samples per pixel.

        Returns:
        The samples per pixel.
      • setSamplesPerPixel

        public void setSamplesPerPixel(int value)

        Gets or sets the samples per pixel.

        Parameters:
        value - The samples per pixel.
      • getSoftware

        public String getSoftware()

        Gets or sets the software.

        Returns:
        The software.
      • setSoftware

        public void setSoftware(String value)

        Gets or sets the software.

        Parameters:
        value - The software.
      • getThumbnail

        public RasterImage getThumbnail()

        Gets or sets the thumbnail image.

        Returns:
        The thumbnail.
      • setThumbnail

        public void setThumbnail(RasterImage value)

        Gets or sets the thumbnail image.

        Parameters:
        value - The thumbnail.
      • getTransferFunction

        public int[] getTransferFunction()

        Gets or sets the transfer function.

        Returns:
        The transfer function.
      • setTransferFunction

        public void setTransferFunction(int[] value)

        Gets or sets the transfer function.

        Parameters:
        value - The transfer function.
      • getXResolution

        public TiffRational getXResolution()

        Gets or sets the x resolution.

        Returns:
        The x resolution.
      • setXResolution

        public void setXResolution(TiffRational value)

        Gets or sets the x resolution.

        Parameters:
        value - The x resolution.
      • getYCbCrCoefficients

        public TiffRational[] getYCbCrCoefficients()

        Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.

        Returns:
        The matrix coefficients for transformation from RGB to YCbCr image data.
      • setYCbCrCoefficients

        public void setYCbCrCoefficients(TiffRational[] value)

        Gets or sets the matrix coefficients for transformation from RGB to YCbCr image data.

        Parameters:
        value - 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:
        The position of chrominance components in relation to the luminance component.
      • setYCbCrPositioning

        public void setYCbCrPositioning(int value)

        Gets or sets the position of chrominance components in relation to the luminance component.

        Parameters:
        value - 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:
        The sampling ratio of chrominance components in relation to the luminance component.
      • setYCbCrSubSampling

        public void setYCbCrSubSampling(int[] value)

        Gets or sets the sampling ratio of chrominance components in relation to the luminance component.

        Parameters:
        value - The sampling ratio of chrominance components in relation to the luminance component.
      • getYResolution

        public TiffRational getYResolution()

        Gets or sets the y resolution.

        Returns:
        The y resolution.
      • setYResolution

        public void setYResolution(TiffRational value)

        Gets or sets the y resolution.

        Parameters:
        value - 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:
        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.