public class ImageSaveOptions extends SaveOptions
Allows to specify additional options when rendering project pages to images.
Constructor and Description |
---|
ImageSaveOptions(int saveFormat)
Initializes a new instance of the
ImageSaveOptions class which can be used to save rendered images in TIFF, PNG, BMP or JPEG formats. |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFontName()
Gets the default font for rendering.
|
float |
getHorizontalResolution()
Gets the horizontal resolution in dpi.
|
int |
getJpegQuality()
Gets a JPEG quality.
|
List<Integer> |
getPages()
List of pages numbers to save when saving project layout to separate files.
|
int |
getPixelFormat()
Gets the format of the color data for each pixel in the image.
|
boolean |
getReduceFooterGap()
Gets a value indicating whether a gap between last task and the footer must be reduced.
|
boolean |
getSaveToSeparateFiles()
Determines whether to save project pages to separate files.
|
int |
getTiffCompression()
Gets the type of compression to apply when saving generated images to the TIFF format.
|
boolean |
getUseProjectDefaultFont()
Gets a value indicating whether the default font must be used for rendering.
|
float |
getVerticalResolution()
Gets the vertical resolution in dpi.
|
void |
setDefaultFontName(String value)
Sets the default font for rendering.
|
void |
setHorizontalResolution(float value)
Sets the horizontal resolution in dpi.
|
void |
setJpegQuality(int value)
Sets a JPEG quality.
|
void |
setPages(List<Integer> value)
List of pages numbers to save when saving project layout to separate files.
|
void |
setPixelFormat(int value)
Sets the format of the color data for each pixel in the image.
|
void |
setReduceFooterGap(boolean value)
Sets a value indicating whether a gap between last task and the footer must be reduced.
|
void |
setSaveToSeparateFiles(boolean value)
Determines whether to save project pages to separate files.
|
void |
setTiffCompression(int value)
Sets the type of compression to apply when saving generated images to the TIFF format.
|
void |
setUseProjectDefaultFont(boolean value)
Sets a value indicating whether the default font must be used for rendering.
|
void |
setVerticalResolution(float value)
Sets the vertical resolution in dpi.
|
getBarStyles, getDrawNonWorkingTime, getEndDate, getFitContent, getGridlines, getLegendOnEachPage, getMarkCriticalTasks, getNonWorkingTimeColor, getPageCount, getPageSize, getPresentationFormat, getRollUpGanttBars, getSaveFormat, getShowProjectSummaryTask, getStartDate, getTasksComparer, getTextStyles, getTimescale, getTimescaleTier, getUseGradientBrush, getView, setBarStyles, setDrawNonWorkingTime, setEndDate, setFitContent, setGridlines, setLegendOnEachPage, setMarkCriticalTasks, setNonWorkingTimeColor, setPageSize, setPresentationFormat, setRollUpGanttBars, setShowProjectSummaryTask, setStartDate, setTasksComparer, setTextStyles, setTimescale, setTimescaleTier, setUseGradientBrush, setView
public ImageSaveOptions(int saveFormat)
Initializes a new instance of the ImageSaveOptions
class which can be used to save rendered images in TIFF, PNG, BMP or JPEG formats.
saveFormat
- Can be TIFF, PNG, BMP or JPEG SaveFileFormat
.public String getDefaultFontName()
public void setDefaultFontName(String value)
value
- the default font name for rendering.public float getHorizontalResolution()
public void setHorizontalResolution(float value)
value
- the specified horizontal resolution.public int getJpegQuality()
public void setJpegQuality(int value)
value
- JPEG quality value.public List<Integer> getPages()
List of pages numbers to save when saving project layout to separate files. All pages will be saved if this list is empty.
public void setPages(List<Integer> value)
List of pages numbers to save when saving project layout to separate files. All pages will be saved if this list is empty.
value
- List of pages numbers to save.public int getPixelFormat()
Gets the format of the color data for each pixel in the image.
public void setPixelFormat(int value)
value
- the specified pixel format.public boolean getReduceFooterGap()
public void setReduceFooterGap(boolean value)
value
- value indicating whether a gap between last task and the footer must be reduced.public boolean getSaveToSeparateFiles()
Determines whether to save project pages to separate files.
public void setSaveToSeparateFiles(boolean value)
value
- true if project is to be saved to separate image files; otherwise, false.public int getTiffCompression()
Gets the type of compression to apply when saving generated images to the TIFF format.
Has effect only when saving to TIFF.
The default value is TiffCompressionLzw
.
TiffCompression
).public void setTiffCompression(int value)
Sets the type of compression to apply when saving generated images to the TIFF format.
Has effect only when saving to TIFF.
The default value is TiffCompressionLzw
.
value
- tiff compression (TiffCompression
).public boolean getUseProjectDefaultFont()
public void setUseProjectDefaultFont(boolean value)
value
- a value indicating whether the default font must be used for rendering.public float getVerticalResolution()
Gets the vertical resolution in dpi.
public void setVerticalResolution(float value)
value
- the specified vertical resolution.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.