public interface ITiffOptions extends ISaveOptions
Provides options that control how a presentation is saved in TIFF format.
| Modifier and Type | Method and Description |
|---|---|
int |
getBwConversionMode()
Specifies the algorithm for converting a color image into a black and white image.
|
int |
getCompressionType()
Specifies the compression type.
|
long |
getDpiX()
Specifies the horizontal resolution in dots per inch.
|
long |
getDpiY()
Specifies the vertical resolution in dots per inch.
|
java.awt.Dimension |
getImageSize()
Specifies size of a generated TIFF image.
|
IInkOptions |
getInkOptions()
Provides options that control the look of Ink objects in exported document.
|
int |
getPixelFormat()
Specifies the pixel format for the generated images.
|
boolean |
getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
|
ISlidesLayoutOptions |
getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
void |
setBwConversionMode(int value)
Specifies the algorithm for converting a color image into a black and white image.
|
void |
setCompressionType(int value)
Specifies the compression type.
|
void |
setDpiX(long value)
Specifies the horizontal resolution in dots per inch.
|
void |
setDpiY(long value)
Specifies the vertical resolution in dots per inch.
|
void |
setImageSize(java.awt.Dimension value)
Specifies size of a generated TIFF image.
|
void |
setPixelFormat(int value)
Specifies the pixel format for the generated images.
|
void |
setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
|
void |
setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackjava.awt.Dimension getImageSize()
Specifies size of a generated TIFF image.
Default value is 0x0, what means that generated image sizes will be calculated based on presentation slide size value.
Read/write Dimension.
void setImageSize(java.awt.Dimension value)
Specifies size of a generated TIFF image.
Default value is 0x0, what means that generated image sizes will be calculated based on presentation slide size value.
Read/write Dimension.
long getDpiX()
Specifies the horizontal resolution in dots per inch. Read/write long.
void setDpiX(long value)
Specifies the horizontal resolution in dots per inch. Read/write long.
long getDpiY()
Specifies the vertical resolution in dots per inch. Read/write long.
void setDpiY(long value)
Specifies the vertical resolution in dots per inch. Read/write long.
boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not. Default is false.
void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not. Default is false.
int getCompressionType()
Specifies the compression type.
Read/write TiffCompressionTypes.
void setCompressionType(int value)
Specifies the compression type.
Read/write TiffCompressionTypes.
int getPixelFormat()
Specifies the pixel format for the generated images.
Read/write ImagePixelFormat.
void setPixelFormat(int value)
Specifies the pixel format for the generated images.
Read/write ImagePixelFormat.
ISlidesLayoutOptions getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { TiffOptions options = new TiffOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); options.setSlidesLayoutOptions(slidesLayoutOptions); pres.save("pres.tiff", SaveFormat.Tiff, options); } finally { if (pres != null) pres.dispose(); }
void setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { TiffOptions options = new TiffOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); options.setSlidesLayoutOptions(slidesLayoutOptions); pres.save("pres.tiff", SaveFormat.Tiff, options); } finally { if (pres != null) pres.dispose(); }
int getBwConversionMode()
Specifies the algorithm for converting a color image into a black and white image.
This option will applied only if CompressionType(getCompressionType()/setCompressionType(int))
is set to TiffCompressionTypes.CCITT4 or TiffCompressionTypes.CCITT3
Read/write BlackWhiteConversionMode.
Default is BlackWhiteConversionMode.Default.
TiffOptions tiffOptions = new TiffOptions(); tiffOptions.setCompressionType(TiffCompressionTypes.CCITT4); tiffOptions.setBwConversionMode(BlackWhiteConversionMode.Dithering); Presentation presentation = new Presentation(); try { presentation.save(tiffFilePath, SaveFormat.Tiff, tiffOptions); } finally { if (presentation != null) presentation.dispose(); }
void setBwConversionMode(int value)
Specifies the algorithm for converting a color image into a black and white image.
This option will applied only if CompressionType(getCompressionType()/setCompressionType(int))
is set to TiffCompressionTypes.CCITT4 or TiffCompressionTypes.CCITT3
Read/write BlackWhiteConversionMode.
Default is BlackWhiteConversionMode.Default.
TiffOptions tiffOptions = new TiffOptions(); tiffOptions.setCompressionType(TiffCompressionTypes.CCITT4); tiffOptions.setBwConversionMode(BlackWhiteConversionMode.Dithering); Presentation presentation = new Presentation(); try { presentation.save(tiffFilePath, SaveFormat.Tiff, tiffOptions); } finally { if (presentation != null) presentation.dispose(); }
IInkOptions getInkOptions()
Provides options that control the look of Ink objects in exported document.
Read-only IInkOptions
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.