Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class ImageOptions

java.lang.Object
  extended by com.aspose.cells.ImageOptions

public class ImageOptions
extends java.lang.Object

Represents settings for generating Image.


Constructor Summary
ImageOptions()
           
 
Method Summary
 int getFashion()
          Gets the generated image fashion.
 int getHorizontalResolution()
          Gets the horizontal resolution for generated images, in dots per inch.
 int getImageFormat()
          Gets the format for generated Image.
 int getPrintingPageType()
          Get the type that indicates which pages will not be printed.
 int getQuality()
          Gets a value determining the quality of the generated images.
 int getVerticalResolution()
          Gets the vertical resolution for generated images, in dots per inch.
 boolean isNeedBitonal()
          Determine whether generate monochrome image.
 boolean isPaginate()
          Determine whether paginate sheet.
 void setFashion(int formatType)
          Sets the generated image fashion.
 void setHorizontalResolution(int horizontalResolution)
          Sets the horizontal resolution for generated images, in dots per inch.
 void setImageFormat(int imageFormat)
          Sets the format for generated Image.
 void setNeedBitonal(boolean needBitonal)
          Set whether generate monochrome image.
 void setPaginate(boolean isPaginate)
          Set whether paginate sheet.
 void setPrintingPageType(int printingPageType)
          Set the type that indicates which pages will not be printed.
 void setQuality(int quality)
          Sets a value determining the quality of the generated images to apply only when saving pages to the JPEG format The value must be between 0 and 100
 void setVerticalResolution(int verticalResolution)
          Sets the vertical resolution for generated images, in dots per inch.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageOptions

public ImageOptions()
Method Detail

isNeedBitonal

public boolean isNeedBitonal()
Determine whether generate monochrome image. The default value is false.

Returns:
true if yes, otherwise false.

setNeedBitonal

public void setNeedBitonal(boolean needBitonal)
Set whether generate monochrome image. The default value is false.

Parameters:
needBitonal - whether generate monochrome image.

getHorizontalResolution

public int getHorizontalResolution()
Gets the horizontal resolution for generated images, in dots per inch. The default value is 96.

Returns:
the horizontal resolution.

setHorizontalResolution

public void setHorizontalResolution(int horizontalResolution)
Sets the horizontal resolution for generated images, in dots per inch. The default value is 96.

Parameters:
horizontalResolution - the horizontal resolution.

getVerticalResolution

public int getVerticalResolution()
Gets the vertical resolution for generated images, in dots per inch. The default value is 96.

Returns:
the vertical resolution.

setVerticalResolution

public void setVerticalResolution(int verticalResolution)
Sets the vertical resolution for generated images, in dots per inch.

Parameters:
verticalResolution - the vertical resolution.

getPrintingPageType

public int getPrintingPageType()
Get the type that indicates which pages will not be printed. The default value is PrintingPageType.DEFAULT.

Returns:
type value
See Also:
PrintingPageType

setPrintingPageType

public void setPrintingPageType(int printingPageType)
Set the type that indicates which pages will not be printed.

Parameters:
printingPageType - type value
See Also:
PrintingPageType

getQuality

public int getQuality()
Gets a value determining the quality of the generated images. To apply only when saving pages to the JPEG format. The default value is 100.

Returns:
quality value

setQuality

public void setQuality(int quality)
Sets a value determining the quality of the generated images to apply only when saving pages to the JPEG format The value must be between 0 and 100

Parameters:
quality - value

isPaginate

public boolean isPaginate()
Determine whether paginate sheet. The default value is true.

Returns:
true if paginate, otherwise false.

setPaginate

public void setPaginate(boolean isPaginate)
Set whether paginate sheet. The default value is true.

Parameters:
isPaginate - paginate status.

getImageFormat

public int getImageFormat()
Gets the format for generated Image.

Returns:
the format for generated Image.
See Also:
setImageFormat(int)

setImageFormat

public void setImageFormat(int imageFormat)
Sets the format for generated Image. The supported format type depends on current set of registered writers for ImageIO.

Parameters:
imageFormat - the format for generated Image.
See Also:
ImageFormat

getFashion

public int getFashion()
Gets the generated image fashion.

Returns:
the generated image fashion.
See Also:
setFashion(int)

setFashion

public void setFashion(int formatType)
Sets the generated image fashion. For converting Chart to Image, specifies the generated image should be like which file format. For example, series' auto color in Excel2003 and Excel2007 is different.
When specifies the format type as FileFormaType.EXCEL2007, the auto colors of series will follow the rule in Excel2007.
When specifies the format type as FileFormaType.EXCEL97TO2003, the auto colors of series will follow the rule in Excel2003.
When fashion is set to FileFormatType.UNKNOWN(it is also the default fashion), the actual fashion used to generate Image depends on the file format of corresponding Workbook. If file format of corresponding Workbook is UNKNOWN or EXCEL97TO2003, then uses fashion of EXCEL2003. Otherwise will use fashion of EXCEL2007.

Parameters:
formatType - the file format. The generated image should look like the chart in this file format.
See Also:
FileFormatType