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 |
---|---|
float |
getHorizontalResolution()
Gets the horizontal resolution in dpi.
|
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.
|
IRenderParam |
getRenderParam()
Returns rendering params (for compliance with obsolete Project.Export method).
|
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.
|
float |
getVerticalResolution()
Gets the vertical resolution in dpi.
|
void |
setHorizontalResolution(float value)
Sets the horizontal resolution in dpi.
|
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 |
setRenderParam(IRenderParam value)
Sets rendering params (for compliance with obsolete Project.Export method).
|
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 |
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, getUseGradientBrush, getView, setBarStyles, setDrawNonWorkingTime, setEndDate, setFitContent, setGridlines, setLegendOnEachPage, setMarkCriticalTasks, setNonWorkingTimeColor, setPageSize, setPresentationFormat, setRollUpGanttBars, setShowProjectSummaryTask, setStartDate, setTasksComparer, setTextStyles, setTimescale, 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 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 IRenderParam getRenderParam()
Returns rendering params (for compliance with obsolete Project.Export method).
public void setRenderParam(IRenderParam value)
Sets rendering params (for compliance with obsolete Project.Export method).
value
- rendering parameters.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 float getHorizontalResolution()
Gets the horizontal resolution in dpi.
public void setHorizontalResolution(float value)
value
- the specified horizontal resolution.public float getVerticalResolution()
Gets the vertical resolution in dpi.
public void setVerticalResolution(float value)
value
- the specified vertical resolution.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 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.
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.