com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ImageSaveOptions



  • public class ImageSaveOptions
    extends SaveOptions

    Allows to specify additional options when rendering project pages to images.

    • Constructor Detail

      • ImageSaveOptions

        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.

        Parameters:
        saveFormat - Can be TIFF, PNG, BMP or JPEG SaveFileFormat.
    • Method Detail

      • getHorizontalResolution

        public float getHorizontalResolution()

        Gets the horizontal resolution in dpi.

        Returns:
        the horizontal resolution.
      • setHorizontalResolution

        public void setHorizontalResolution(float value)
        Sets the horizontal resolution in dpi.
        Parameters:
        value - the specified horizontal resolution.
      • getPages

        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.

        Returns:
        List of pages numbers to save.
      • setPages

        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.

        Parameters:
        value - List of pages numbers to save.
      • getPixelFormat

        public int getPixelFormat()

        Gets the format of the color data for each pixel in the image.

        Returns:
        pixel format.
      • setPixelFormat

        public void setPixelFormat(int value)
        Sets the format of the color data for each pixel in the image.
        Parameters:
        value - the specified pixel format.
      • getRenderParam

        public IRenderParam getRenderParam()

        Returns rendering params (for compliance with obsolete Project.Export method).

        Returns:
        rendering parameters.
      • setRenderParam

        public void setRenderParam(IRenderParam value)

        Sets rendering params (for compliance with obsolete Project.Export method).

        Parameters:
        value - rendering parameters.
      • getSaveToSeparateFiles

        public boolean getSaveToSeparateFiles()

        Determines whether to save project pages to separate files.

        Returns:
        true if project is to be saved to separate image files; otherwise, false.
      • setSaveToSeparateFiles

        public void setSaveToSeparateFiles(boolean value)
        Determines whether to save project pages to separate files.
        Parameters:
        value - true if project is to be saved to separate image files; otherwise, false.
      • getTiffCompression

        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.

        Returns:
        tiff compression (TiffCompression).
      • setTiffCompression

        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.

        Parameters:
        value - tiff compression (TiffCompression).
      • getVerticalResolution

        public float getVerticalResolution()

        Gets the vertical resolution in dpi.

        Returns:
        the vertical resolution in dpi.
      • setVerticalResolution

        public void setVerticalResolution(float value)
        Sets the vertical resolution in dpi.
        Parameters:
        value - the specified vertical resolution.