com.aspose.note

Class ImageSaveOptions



  • public class ImageSaveOptions
    extends SaveOptions

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

    • Constructor Detail

      • ImageSaveOptions

        public ImageSaveOptions(int format)

        Initializes a new instance of the ImageSaveOptions class.

        Parameters:
        format - The format in which the document is saved.
    • Method Detail

      • getPageIndex

        public int getPageIndex()

        Gets or sets the index of the first page to save. By default is 0.

      • setPageIndex

        public void setPageIndex(int value)

        Gets or sets the index of the first page to save. By default is 0.

      • getResolution

        public float getResolution()

        Gets the resolution for the generated images, in dots per inch.


        The default value is 96.
      • setResolution

        public void setResolution(float value)

        Sets the resolution for the generated images, in dots per inch.


        The default value is 90.
      • getQuality

        public final int getQuality()

        Gets a value determining the quality of saved image. This value is passed to codec as System.Drawing.Imaging.Encoder.Quality parameter.


        The range of useful values for the quality category is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would give you the lowest quality image and 100 the highest. The default value is 90.
      • setQuality

        public final void setQuality(int value)

        Sets a value determining the quality of saved image. This value is passed to codec as System.Drawing.Imaging.Encoder.Quality parameter.


        The range of useful values for the quality category is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would give you the lowest quality image and 100 the highest. The default value is 90.