com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ISlide

    • Method Detail

      • getSlideNumber

        int getSlideNumber()

        Returns a number of slide. Index of slide in IPresentation.Slides(IPresentation.getSlides()) collection is always equal to SlideNumber - 1. Read/write int.

      • setSlideNumber

        void setSlideNumber(int value)

        Returns a number of slide. Index of slide in IPresentation.Slides(IPresentation.getSlides()) collection is always equal to SlideNumber - 1. Read/write int.

      • getHidden

        boolean getHidden()

        Determines whether the specified slide is hidden during a slide show. Read/write boolean.

      • setHidden

        void setHidden(boolean value)

        Determines whether the specified slide is hidden during a slide show. Read/write boolean.

      • getThumbnail

        android.graphics.Bitmap getThumbnail(float scaleX,
                                             float scaleY)

        Returns a Thumbnail Bitmap object with custom scaling.

        Parameters:
        scaleX - The value by which to scale this Thumbnail in the x-axis direction.
        scaleY - The value by which to scale this Thumbnail in the y-axis direction.
        Returns:
        Bitmap object Bitmap
      • getThumbnail

        android.graphics.Bitmap getThumbnail()

        Returns a Thumbnail Image object (20% of real size).

        Returns:
        Bitmap object Bitmap
      • getThumbnail

        android.graphics.Bitmap getThumbnail(Size imageSize)

        Returns a Thumbnail Bitmap object with specified size.

        Parameters:
        imageSize - Size of the image to create.
        Returns:
        Bitmap object.
      • getThumbnail

        android.graphics.Bitmap getThumbnail(ITiffOptions options)

        Returns a Thumbnail tiff bitmap object with specified parameters.

        Parameters:
        options - Tiff options.
        Returns:
        Bitmap object.
      • getThumbnail

        @Deprecated
        android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting)
        Deprecated. Use ISlide.getThumbnail(IRenderingOptions) instead. The method will be removed after release of version 21.4.

        Returns a Thumbnail android.graphics.Bitmap object.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        Returns:
        android.graphics.Bitmap objects.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • getThumbnail

        @Deprecated
        android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                                          float scaleX,
                                                          float scaleY)
        Deprecated. Use ISlide.getThumbnail(IRenderingOptions, float, float) instead. The method will be removed after release of version 21.4.

        Returns a Thumbnail android.graphics.Bitmap object with custom scaling.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        scaleX - The value by which to scale this Thumbnail in the x-axis direction.
        scaleY - The value by which to scale this Thumbnail in the y-axis direction.
        Returns:
        android.graphics.Bitmap objects.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • getThumbnail

        @Deprecated
        android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions options,
                                                          Size imageSize)
        Deprecated. Use ISlide.getThumbnail(IRenderingOptions) instead. The method will be removed after release of version 21.4.

        Returns a Thumbnail android.graphics.Bitmap object with specified size.

        Parameters:
        options - Options for notes and comments layouting.
        imageSize - Size of the image to create.
        Returns:
        android.graphics.Bitmap objects.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • getThumbnail

        android.graphics.Bitmap getThumbnail(IRenderingOptions options)

        Returns a Thumbnail android.graphics.Bitmap object.

        Parameters:
        options - Rendering options.
        Returns:
        android.graphics.Bitmap objects.
      • getThumbnail

        android.graphics.Bitmap getThumbnail(IRenderingOptions options,
                                             float scaleX,
                                             float scaleY)

        Returns a Thumbnail android.graphics.Bitmap object with custom scaling.

        Parameters:
        options - Rendering options.
        scaleX - The value by which to scale this Thumbnail in the x-axis direction.
        scaleY - The value by which to scale this Thumbnail in the y-axis direction.
        Returns:
        android.graphics.Bitmap objects.
      • getThumbnail

        android.graphics.Bitmap getThumbnail(IRenderingOptions options,
                                             Size imageSize)

        Returns a Thumbnail android.graphics.Bitmap object with specified size.

        Parameters:
        options - Rendering options.
        imageSize - Size of the image to create.
        Returns:
        android.graphics.Bitmap objects.
      • renderToGraphics

        @Deprecated
        void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                           android.graphics.Canvas graphics,
                                           int width,
                                           int height)
        Deprecated. Use ISlide.renderToGraphics(IRenderingOptions, Graphics, int, int) instead. The method will be removed after release of version 21.4.

        Renders certain slide to a Graphics object.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        graphics - The object where to render to.
        width - The maximum width (in pixels) that can be occupied by the rendered slide.
        height - The maximum height (in pixels) that can be occupied by the rendered slide.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • renderToGraphics

        @Deprecated
        void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                           android.graphics.Canvas graphics,
                                           float scale)
        Deprecated. Use ISlide.renderToGraphics(IRenderingOptions, Graphics, float) instead. The method will be removed after release of version 21.4.

        Renders certain slide to a Graphics object.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        graphics - The object where to render to.
        scale - The scale for rendering the slide (1.0 is 100%).
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • renderToGraphics

        @Deprecated
        void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
                                           android.graphics.Canvas graphics)
        Deprecated. Use ISlide.renderToGraphics(IRenderingOptions, Graphics) instead. The method will be removed after release of version 21.4.

        Renders certain slide to a Graphics object.

        Parameters:
        notesCommentsLayouting - Options for notes and comments layouting.
        graphics - The object where to render to.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • renderToGraphics

        void renderToGraphics(IRenderingOptions options,
                              android.graphics.Canvas graphics)

        Renders certain slide to a Graphics object.

        Parameters:
        options - Rendering options.
        graphics - The object where to render to.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • renderToGraphics

        void renderToGraphics(IRenderingOptions options,
                              android.graphics.Canvas graphics,
                              float scaleX,
                              float scaleY)

        Renders certain slide to a Graphics object with custom scaling.

        Parameters:
        options - Rendering options.
        graphics - The object where to render to.
        scaleX - The scale for rendering the slide (1.0 is 100%) in the x-axis direction.
        scaleY - The scale for rendering the slide (1.0 is 100%) in the y-axis direction.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • renderToGraphics

        void renderToGraphics(IRenderingOptions options,
                              android.graphics.Canvas graphics,
                              Size renderingSize)

        Renders certain slide to a Graphics object using specified size.

        Parameters:
        options - Rendering options.
        graphics - The object where to render to.
        renderingSize - The maximum dimensions (in pixels) that can be occupied by the rendered slide.
        Throws:
        com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull
      • getLayoutSlide

        ILayoutSlide getLayoutSlide()

        Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.

      • setLayoutSlide

        void setLayoutSlide(ILayoutSlide value)

        Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.

      • getSlideComments

        IComment[] getSlideComments(ICommentAuthor author)

        Returns all slide comments added by specific author.

        Parameters:
        author - Author of comments to find or null to return all comments.
        Returns:
        Array of IComment.
      • writeAsSvg

        void writeAsSvg(java.io.OutputStream stream)

        Saves content of slide as SVG file.

        Parameters:
        stream - Target stream
      • writeAsSvg

        void writeAsSvg(java.io.OutputStream stream,
                        ISVGOptions svgOptions)

        Saves content of slide as SVG file.

        Parameters:
        stream - Target stream
        svgOptions - SVG generation options
      • remove

        void remove()

        Removes slide from presentation.

        Throws:
        PptxEditException - Thrown if slide is already removed from presentation.
      • reset

        void reset()

        Resets position, size and formatting of every shape that has a prototype on LayoutSlide.