public class TiffOptions extends ImageOptionsBase
The tiff file format options. Note that width and height tags will get overwritten on image creation by width and height parameters so there is no need to specify them directly. Note that many options return a default value but that does not mean that this option is set explicitly as a tag value. To verify the tag is present use Tags property or the corresponding IsTagPresent method.
<developer_tip>
WARNING! never modify tiff options during save since this may cause side effects and hard to find bugs.
The following line was specially left commented since it caused incorrect determination of data beginning.
The passed options did not contain spp (although the options are not correct in such case but still this scenario causes errors)
and the next line caused +spp tag +bpp tag added and when options were written after data completely written they have overwritten
the data beginning for uncompressed codec!!! See TiffUncompressedCodec.Encode.
this.Options.SamplesPerPixel = 3;
</developer_tip>
Constructor and Description |
---|
TiffOptions(int expectedFormat)
Initializes a new instance of the
TiffOptions class. |
TiffOptions(int expectedFormat,
int byteOrder)
Initializes a new instance of the
TiffOptions class. |
TiffOptions(TiffDataType[] tags)
Initializes a new instance of the
TiffOptions class. |
TiffOptions(TiffOptions options)
Initializes a new instance of the
TiffOptions class. |
Modifier and Type | Method and Description |
---|---|
void |
addTag(TiffDataType tagToAdd)
Adds a new tag.
|
void |
addTags(TiffDataType[] tagsToAdd)
Adds the tags.
|
int |
getAlphaStorage()
Gets or sets the alpha storage option.
|
String |
getArtist()
Gets or sets the artist.
|
int |
getBitsPerPixel()
Gets the bits per pixel.
|
int[] |
getBitsPerSample()
Gets or sets the bits per sample.
|
int |
getByteOrder()
Gets or sets a value indicating the tiff byte order.
|
int[] |
getColorMap()
Gets or sets the color map.
|
int |
getCompression()
Gets or sets the compression.
|
String |
getCopyright()
Gets or sets the copyright.
|
String |
getDateTime()
Gets or sets the date and time.
|
int |
getDefaultMemoryAllocationLimit()
Gets or sets the default memory allocation limit.
|
String |
getDocumentName()
Gets or sets the name of the document.
|
TiffExifIfd |
getExifIfd()
Gets or sets the pointer to EXIF IFD.
|
long |
getFaxT4Options()
Gets or sets the fax t4 options.
|
int |
getFileStandard()
Gets or sets the TIFF file standard.
|
int |
getFillOrder()
Gets or sets the byte bits fill order.
|
int[] |
getHalfToneHints()
Gets or sets the halftone hints.
|
byte[] |
getIccProfile()
Gets or sets the Icc profile stream.
|
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 |
getInkNames()
Gets or sets the ink names.
|
int[] |
getMaxSampleValue()
Gets or sets the max sample value.
|
int[] |
getMinSampleValue()
Gets or sets the min sample value.
|
int |
getOrientation()
Gets or sets the orientation.
|
String |
getPageName()
Gets or sets the page name.
|
int[] |
getPageNumber()
Gets or sets the page number tag.
|
IColorPalette |
getPalette()
Gets or sets the color palette.
|
int |
getPhotometric()
Gets or sets the photometric.
|
int |
getPlanarConfiguration()
Gets or sets the planar configuration.
|
int |
getPredictor()
Gets or sets the predictor for LZW compression.
|
boolean |
getPremultiplyComponents()
Gets or sets a value indicating whether components must be premultiplied.
|
ResolutionSetting |
getResolutionSettings()
Gets or sets the resolution settings.
|
int |
getResolutionUnit()
Gets or sets the resolution unit.
|
long |
getRowsPerStrip()
Gets or sets the rows per strip.
|
int[] |
getSampleFormat()
Gets or sets the sample format.
|
int |
getSamplesPerPixel()
Gets the samples per pixel.
|
String |
getScannerManufacturer()
Gets or sets the scanner manufacturer.
|
String |
getScannerModel()
Gets or sets the scanner model.
|
long[] |
getSmaxSampleValue()
Gets or sets the max sample value.
|
long[] |
getSminSampleValue()
Gets or sets the min sample value.
|
String |
getSoftwareType()
Gets or sets the software type.
|
long[] |
getStripByteCounts()
Gets or sets the strip byte counts.
|
long[] |
getStripOffsets()
Gets or sets the strip offsets.
|
long |
getSubFileType()
Gets or sets a general indication of the kind of data contained in this subfile.
|
TiffDataType |
getTagByType(int tagKey)
Gets the instance of the tag by type.
|
TiffDataType[] |
getTags()
Gets or sets the tags.
|
String |
getTargetPrinter()
Gets or sets the target printer.
|
int |
getThreshholding()
Gets or sets the threshholding.
|
long[] |
getTileByteCounts()
Gets or sets the tile byte counts.
|
long |
getTileLength()
Gets ot sets tile length.
|
long[] |
getTileOffsets()
Gets or sets the tile offsets.
|
long |
getTileWidth()
Gets ot sets tile width.
|
int |
getTotalPages()
Gets the total pages.
|
int |
getValidTagCount()
Gets the valid tag count.
|
static int |
getValidTagsCount(TiffDataType[] tags)
Gets the valid tags count.
|
XmpPacketWrapper |
getXmpData()
Gets or sets the XMP metadata container.
|
TiffRational |
getXposition()
Gets or sets the x position.
|
TiffRational |
getXresolution()
Gets or sets the x resolution.
|
TiffRational[] |
getYCbCrCoefficients()
Gets or sets the YCbCrCoefficients.
|
int[] |
getYCbCrSubsampling()
Gets or sets the subsampling factors for YCbCr photometric.
|
TiffRational |
getYposition()
Gets or sets the y position.
|
TiffRational |
getYresolution()
Gets or sets the y resolution.
|
boolean |
isExtraSamplesPresent()
Gets a value indicating whether the extra samples is present.
|
boolean |
isTagPresent(int tag)
Determines whether tag is present in the options or not.
|
boolean |
isTiled()
Gets a value indicating whether image is tiled.
|
boolean |
isValid()
Gets a value indicating whether the
TiffOptions have been properly configured. |
boolean |
removeTag(int tag)
Removes the tag.
|
void |
setAlphaStorage(int value)
Gets or sets the alpha storage option.
|
void |
setArtist(String value)
Gets or sets the artist.
|
void |
setBitsPerSample(int[] value)
Gets or sets the bits per sample.
|
void |
setByteOrder(int value)
Gets or sets a value indicating the tiff byte order.
|
void |
setColorMap(int[] value)
Gets or sets the color map.
|
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 and time.
|
void |
setDefaultMemoryAllocationLimit(int value)
Gets or sets the default memory allocation limit.
|
void |
setDocumentName(String value)
Gets or sets the name of the document.
|
void |
setExifIfd(TiffExifIfd value)
Gets or sets the pointer to EXIF IFD.
|
void |
setFaxT4Options(long value)
Gets or sets the fax t4 options.
|
void |
setFileStandard(int value)
Gets or sets the TIFF file standard.
|
void |
setFillOrder(int value)
Gets or sets the byte bits fill order.
|
void |
setHalfToneHints(int[] value)
Gets or sets the halftone hints.
|
void |
setIccProfile(byte[] value)
Gets or sets the Icc profile stream.
|
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 |
setInkNames(String value)
Gets or sets the ink names.
|
void |
setMaxSampleValue(int[] value)
Gets or sets the max sample value.
|
void |
setMinSampleValue(int[] value)
Gets or sets the min sample value.
|
void |
setOrientation(int value)
Gets or sets the orientation.
|
void |
setPageName(String value)
Gets or sets the page name.
|
void |
setPageNumber(int[] value)
Gets or sets the page number tag.
|
void |
setPalette(IColorPalette value)
Gets or sets the color palette.
|
void |
setPhotometric(int value)
Gets or sets the photometric.
|
void |
setPlanarConfiguration(int value)
Gets or sets the planar configuration.
|
void |
setPredictor(int value)
Gets or sets the predictor for LZW compression.
|
void |
setPremultiplyComponents(boolean value)
Gets or sets a value indicating whether components must be premultiplied.
|
void |
setResolutionSettings(ResolutionSetting value)
Gets or sets the resolution settings.
|
void |
setResolutionUnit(int value)
Gets or sets the resolution unit.
|
void |
setRowsPerStrip(long value)
Gets or sets the rows per strip.
|
void |
setSampleFormat(int[] value)
Gets or sets the sample format.
|
void |
setScannerManufacturer(String value)
Gets or sets the scanner manufacturer.
|
void |
setScannerModel(String value)
Gets or sets the scanner model.
|
void |
setSmaxSampleValue(long[] value)
Gets or sets the max sample value.
|
void |
setSminSampleValue(long[] value)
Gets or sets the min sample value.
|
void |
setSoftwareType(String value)
Gets or sets the software type.
|
void |
setStripByteCounts(long[] value)
Gets or sets the strip byte counts.
|
void |
setStripOffsets(long[] value)
Gets or sets the strip offsets.
|
void |
setSubFileType(long value)
Gets or sets a general indication of the kind of data contained in this subfile.
|
void |
setTags(TiffDataType[] value)
Gets or sets the tags.
|
void |
setTargetPrinter(String value)
Gets or sets the target printer.
|
void |
setThreshholding(int value)
Gets or sets the threshholding.
|
void |
setTileByteCounts(long[] value)
Gets or sets the tile byte counts.
|
void |
setTileLength(long value)
Gets ot sets tile length.
|
void |
setTileOffsets(long[] value)
Gets or sets the tile offsets.
|
void |
setTileWidth(long value)
Gets ot sets tile width.
|
void |
setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
void |
setXposition(TiffRational value)
Gets or sets the x position.
|
void |
setXresolution(TiffRational value)
Gets or sets the x resolution.
|
void |
setYCbCrCoefficients(TiffRational[] value)
Gets or sets the YCbCrCoefficients.
|
void |
setYCbCrSubsampling(int[] value)
Gets or sets the subsampling factors for YCbCr photometric.
|
void |
setYposition(TiffRational value)
Gets or sets the y position.
|
void |
setYresolution(TiffRational value)
Gets or sets the y resolution.
|
void |
validate()
Validates if options have valid combination of tags
|
clone, getBufferSizeHint, getMultiPageOptions, getProgressEventHandler, getSource, getVectorRasterizationOptions, setBufferSizeHint, setMultiPageOptions, setProgressEventHandler, setSource, setVectorRasterizationOptions
dispose, getDisposed
public TiffOptions(int expectedFormat, int byteOrder)
Initializes a new instance of the TiffOptions
class.
expectedFormat
- The expected tiff file format.byteOrder
- The tiff file format byte order to use.public TiffOptions(int expectedFormat)
Initializes a new instance of the TiffOptions
class. By default little endian convention is used.
expectedFormat
- The expected tiff file format.public TiffOptions(TiffOptions options)
Initializes a new instance of the TiffOptions
class.
options
- The options to copy from.public TiffOptions(TiffDataType[] tags)
Initializes a new instance of the TiffOptions
class.
tags
- The tags to initialize options with.public final int getFileStandard()
Gets or sets the TIFF file standard.
Value: The TIFF file standard.public final void setFileStandard(int value)
Gets or sets the TIFF file standard.
Value: The TIFF file standard.public final int getDefaultMemoryAllocationLimit()
Gets or sets the default memory allocation limit.
Value: The default memory allocation limit.public final void setDefaultMemoryAllocationLimit(int value)
Gets or sets the default memory allocation limit.
Value: The default memory allocation limit.public final boolean getPremultiplyComponents()
Gets or sets a value indicating whether components must be premultiplied.
Value:true
if components must be premultiplied; otherwise, false
.public final void setPremultiplyComponents(boolean value)
Gets or sets a value indicating whether components must be premultiplied.
Value:true
if components must be premultiplied; otherwise, false
.public XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
Value: The XMP data container.getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
Value: The XMP data container.setXmpData
in class ImageOptionsBase
public final boolean isValid()
Gets a value indicating whether the TiffOptions
have been properly configured. Use Validate method as to find the failure reason.
true
if TiffOptions are properly configured; otherwise, false
.public final int[] getYCbCrSubsampling()
Gets or sets the subsampling factors for YCbCr photometric.
TiffImageException
- Invalid field length. YCbCrSubsampling field must contain two values.com.aspose.ms.System.ArgumentNullException
- value
Value:
The subsampling factors for YCbCr photometric.public final void setYCbCrSubsampling(int[] value)
Gets or sets the subsampling factors for YCbCr photometric.
TiffImageException
- Invalid field length. YCbCrSubsampling field must contain two values.com.aspose.ms.System.ArgumentNullException
- value
Value:
The subsampling factors for YCbCr photometric.public final TiffRational[] getYCbCrCoefficients()
Gets or sets the YCbCrCoefficients.
TiffImageException
- Invalid count of rational coefficient values. Must be equal to 3.com.aspose.ms.System.ArgumentNullException
- value
Value:
The YCbCrCoefficients.public final void setYCbCrCoefficients(TiffRational[] value)
Gets or sets the YCbCrCoefficients.
TiffImageException
- Invalid count of rational coefficient values. Must be equal to 3.com.aspose.ms.System.ArgumentNullException
- value
Value:
The YCbCrCoefficients.public final boolean isTiled()
Gets a value indicating whether image is tiled.
Value:true
if image is tiled; otherwise, false
.public final String getArtist()
Gets or sets the artist.
Value: The artist.public final void setArtist(String value)
Gets or sets the artist.
Value: The artist.public final boolean isTagPresent(int tag)
Determines whether tag is present in the options or not.
tag
- The tag id to check.true
if tag is present; otherwise, false
.public final int getByteOrder()
Gets or sets a value indicating the tiff byte order.
public final void setByteOrder(int value)
Gets or sets a value indicating the tiff byte order.
public final byte[] getIccProfile()
Gets or sets the Icc profile stream.
Value: The icc profile.public final void setIccProfile(byte[] value)
Gets or sets the Icc profile stream.
Value: The icc profile.public final int[] getBitsPerSample()
Gets or sets the bits per sample.
Value: The bits per sample value.public final void setBitsPerSample(int[] value)
Gets or sets the bits per sample.
Value: The bits per sample value.public final int getCompression()
Gets or sets the compression.
Value: The compression.public final void setCompression(int value)
Gets or sets the compression.
Value: The compression.public final String getCopyright()
Gets or sets the copyright.
Value: The copyright.public final void setCopyright(String value)
Gets or sets the copyright.
Value: The copyright.public final int[] getColorMap()
Gets or sets the color map.
com.aspose.ms.System.ArgumentNullException
- valueTiffImageException
- The color map may be defined for samples per pixel equal to 1 only.
or
The bits per sample are not defined.com.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the followign formula: 3 * (2**BitsPerSample).
Value:
The color map.public final void setColorMap(int[] value)
Gets or sets the color map.
com.aspose.ms.System.ArgumentNullException
- valueTiffImageException
- The color map may be defined for samples per pixel equal to 1 only.
or
The bits per sample are not defined.com.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the followign formula: 3 * (2**BitsPerSample).
Value:
The color map.public IColorPalette getPalette()
Gets or sets the color palette.
Value: The color palette.getPalette
in class ImageOptionsBase
public void setPalette(IColorPalette value)
Gets or sets the color palette.
Value: The color palette.setPalette
in class ImageOptionsBase
public final String getDateTime()
Gets or sets the date and time.
Value: The date and time.public final void setDateTime(String value)
Gets or sets the date and time.
Value: The date and time.public final String getDocumentName()
Gets or sets the name of the document.
Value: The name of the document.public final void setDocumentName(String value)
Gets or sets the name of the document.
Value: The name of the document.public final int getAlphaStorage()
Gets or sets the alpha storage option. Options other than TiffAlphaStorage.Unspecified
are used when there are more than 3 SamplesPerPixel
(TiffOptions.getSamplesPerPixel()
) defined.
public final void setAlphaStorage(int value)
Gets or sets the alpha storage option. Options other than TiffAlphaStorage.Unspecified
are used when there are more than 3 SamplesPerPixel
(TiffOptions.getSamplesPerPixel()
) defined.
public final boolean isExtraSamplesPresent()
Gets a value indicating whether the extra samples is present.
Value:true
if the extra samples is present; otherwise, false
.public final int getFillOrder()
Gets or sets the byte bits fill order.
Value: The byte bits fill order.public final void setFillOrder(int value)
Gets or sets the byte bits fill order.
Value: The byte bits fill order.public final int[] getHalfToneHints()
Gets or sets the halftone hints.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;Halftone hints array length must be equal to 2.
Value:
The halftone hints.public final void setHalfToneHints(int[] value)
Gets or sets the halftone hints.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;Halftone hints array length must be equal to 2.
Value:
The halftone hints.public final String getImageDescription()
Gets or sets the image description.
Value: The image description.public final void setImageDescription(String value)
Gets or sets the image description.
Value: The image description.public final String getInkNames()
Gets or sets the ink names.
Value: The ink names.public final void setInkNames(String value)
Gets or sets the ink names.
Value: The ink names.public final String getScannerManufacturer()
Gets or sets the scanner manufacturer.
Value: The scanner manufacturer.public final void setScannerManufacturer(String value)
Gets or sets the scanner manufacturer.
Value: The scanner manufacturer.public final int[] getMaxSampleValue()
Gets or sets the max sample value.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The max sample value.public final void setMaxSampleValue(int[] value)
Gets or sets the max sample value.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The max sample value.public final int[] getMinSampleValue()
Gets or sets the min sample value.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The min sample value.public final void setMinSampleValue(int[] value)
Gets or sets the min sample value.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The min sample value.public final String getScannerModel()
Gets or sets the scanner model.
Value: The scanner model.public final void setScannerModel(String value)
Gets or sets the scanner model.
Value: The scanner model.public final int getOrientation()
Gets or sets the orientation.
Value: The orientation.public final void setOrientation(int value)
Gets or sets the orientation.
Value: The orientation.public final String getPageName()
Gets or sets the page name.
Value: The page name.public final void setPageName(String value)
Gets or sets the page name.
Value: The page name.public final int[] getPageNumber()
Gets or sets the page number tag.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;Expected 2 values in the array: PageNumber[0] is the page number and PageNumber[1] is the total number of pages in the document.
Value:
The page number tag.public final void setPageNumber(int[] value)
Gets or sets the page number tag.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;Expected 2 values in the array: PageNumber[0] is the page number and PageNumber[1] is the total number of pages in the document.
Value:
The page number tag.public final int getPhotometric()
Gets or sets the photometric.
Value: The photometric.public final void setPhotometric(int value)
Gets or sets the photometric.
Value: The photometric.public final int getPlanarConfiguration()
Gets or sets the planar configuration.
Value: The planar configuration.public final void setPlanarConfiguration(int value)
Gets or sets the planar configuration.
Value: The planar configuration.public final int getResolutionUnit()
Gets or sets the resolution unit.
Value: The resolution unit.public final void setResolutionUnit(int value)
Gets or sets the resolution unit.
Value: The resolution unit.public final long getRowsPerStrip()
Gets or sets the rows per strip.
Value: The rows per strip.public final void setRowsPerStrip(long value)
Gets or sets the rows per strip.
Value: The rows per strip.public final long getTileWidth()
Gets ot sets tile width.
public final void setTileWidth(long value)
Gets ot sets tile width.
public final long getTileLength()
Gets ot sets tile length.
public final void setTileLength(long value)
Gets ot sets tile length.
public final int[] getSampleFormat()
Gets or sets the sample format.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The sample format.public final void setSampleFormat(int[] value)
Gets or sets the sample format.
com.aspose.ms.System.ArgumentNullException
- valuecom.aspose.ms.System.ArgumentOutOfRangeException
- value;The array length must correspond to the samples per pixel count.
Value:
The sample format.public final int getSamplesPerPixel()
Gets the samples per pixel. To change this property value use the BitsPerSample
(TiffOptions.getBitsPerSample()
/TiffOptions.setBitsPerSample(int[])
) property setter.
public final long[] getSmaxSampleValue()
Gets or sets the max sample value. The value has a field type which best matches the sample data (Byte, Short or Long type).
Value: The max sample value.public final void setSmaxSampleValue(long[] value)
Gets or sets the max sample value. The value has a field type which best matches the sample data (Byte, Short or Long type).
Value: The max sample value.public final long[] getSminSampleValue()
Gets or sets the min sample value. The value has a field type which best matches the sample data (Byte, Short or Long type).
Value: The min sample value.public final void setSminSampleValue(long[] value)
Gets or sets the min sample value. The value has a field type which best matches the sample data (Byte, Short or Long type).
Value: The min sample value.public final String getSoftwareType()
Gets or sets the software type.
Value: The software type.public final void setSoftwareType(String value)
Gets or sets the software type.
Value: The software type.public final long[] getStripByteCounts()
Gets or sets the strip byte counts.
Value: The strip byte counts.public final void setStripByteCounts(long[] value)
Gets or sets the strip byte counts.
Value: The strip byte counts.public final long[] getStripOffsets()
Gets or sets the strip offsets.
Value: The strip offsets.public final void setStripOffsets(long[] value)
Gets or sets the strip offsets.
Value: The strip offsets.public final long[] getTileByteCounts()
Gets or sets the tile byte counts.
public final void setTileByteCounts(long[] value)
Gets or sets the tile byte counts.
public final long[] getTileOffsets()
Gets or sets the tile offsets.
public final void setTileOffsets(long[] value)
Gets or sets the tile offsets.
public final long getSubFileType()
Gets or sets a general indication of the kind of data contained in this subfile.
Value: The general indication of the kind of data contained in this subfile.public final void setSubFileType(long value)
Gets or sets a general indication of the kind of data contained in this subfile.
Value: The general indication of the kind of data contained in this subfile.public final String getTargetPrinter()
Gets or sets the target printer.
Value: The target printer.public final void setTargetPrinter(String value)
Gets or sets the target printer.
Value: The target printer.public final int getThreshholding()
Gets or sets the threshholding.
Value: The threshholding.public final void setThreshholding(int value)
Gets or sets the threshholding.
Value: The threshholding.public final int getTotalPages()
Gets the total pages.
Value: The total pages.public final TiffRational getXposition()
Gets or sets the x position.
Value: The x position.public final void setXposition(TiffRational value)
Gets or sets the x position.
Value: The x position.public ResolutionSetting getResolutionSettings()
Gets or sets the resolution settings.
getResolutionSettings
in class ImageOptionsBase
public void setResolutionSettings(ResolutionSetting value)
Gets or sets the resolution settings.
setResolutionSettings
in class ImageOptionsBase
public final TiffRational getXresolution()
Gets or sets the x resolution.
Value: The x resolution.public final void setXresolution(TiffRational value)
Gets or sets the x resolution.
Value: The x resolution.public final TiffRational getYposition()
Gets or sets the y position.
Value: The y position.public final void setYposition(TiffRational value)
Gets or sets the y position.
Value: The y position.public final TiffRational getYresolution()
Gets or sets the y resolution.
Value: The y resolution.public final void setYresolution(TiffRational value)
Gets or sets the y resolution.
Value: The y resolution.public final long getFaxT4Options()
Gets or sets the fax t4 options.
Value: The fax t4 options.public final void setFaxT4Options(long value)
Gets or sets the fax t4 options.
Value: The fax t4 options.public final int getPredictor()
Gets or sets the predictor for LZW compression.
Value: The predictor type.public final void setPredictor(int value)
Gets or sets the predictor for LZW compression.
Value: The predictor type.public final long getImageLength()
Gets or sets the image length.
Value: The image length.public final void setImageLength(long value)
Gets or sets the image length.
Value: The image length.public final long getImageWidth()
Gets or sets the image width.
Value: The image width.public final void setImageWidth(long value)
Gets or sets the image width.
Value: The image width.public final TiffExifIfd getExifIfd()
Gets or sets the pointer to EXIF IFD.
Value: The pointer to EXIF IFD.public final void setExifIfd(TiffExifIfd value)
Gets or sets the pointer to EXIF IFD.
Value: The pointer to EXIF IFD.public final TiffDataType[] getTags()
Gets or sets the tags.
Value: The tags.public final void setTags(TiffDataType[] value)
Gets or sets the tags.
Value: The tags.public final int getValidTagCount()
Gets the valid tag count. This is not the total tags count but the number of tags which may be preserved.
Value: The valid tag count.public final int getBitsPerPixel()
Gets the bits per pixel.
Value: The bits per pixel.public static int getValidTagsCount(TiffDataType[] tags)
Gets the valid tags count.
tags
- The tags to validate.public final boolean removeTag(int tag)
Removes the tag.
tag
- The tag to remove.public final void validate()
Validates if options have valid combination of tags
public final void addTags(TiffDataType[] tagsToAdd)
Adds the tags.
tagsToAdd
- The tags to add.public final void addTag(TiffDataType tagToAdd)
Adds a new tag.
tagToAdd
- The tag to add.public final TiffDataType getTagByType(int tagKey)
Gets the instance of the tag by type.
tagKey
- The tag key.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.