ISlide
All Implemented Interfaces: com.aspose.slides.IBaseSlide, com.aspose.slides.IOverrideThemeable
public interface ISlide extends IBaseSlide, IOverrideThemeable
Represents a slide in a presentation.
Methods
| Method | Description |
|---|---|
| getHeaderFooterManager() | Returns HeaderFooter manager of the slide. |
| getSlideNumber() | Returns a number of slide. |
| setSlideNumber(int value) | Returns a number of slide. |
| getHidden() | Determines whether the specified slide is hidden during a slide show. |
| setHidden(boolean value) | Determines whether the specified slide is hidden during a slide show. |
| getThumbnail(float scaleX, float scaleY) | Returns a Thumbnail Bitmap object with custom scaling. |
| getImage(float scaleX, float scaleY) | Returns an image object with custom scaling. |
| getThumbnail() | Returns a Thumbnail Image object (20% of real size). |
| getImage() | Returns a Thumbnail Image object (20% of real size). |
| getThumbnail(Size imageSize) | Returns a Thumbnail Bitmap object with specified size. |
| getImage(Size imageSize) | Returns an image object with specified size. |
| getThumbnail(ITiffOptions options) | Returns a Thumbnail tiff bitmap object with specified parameters. |
| getImage(ITiffOptions options) | Returns a Thumbnail tiff bitmap object with specified parameters. |
| getThumbnail(IRenderingOptions options) | Returns a Thumbnail Bitmap object. |
| getImage(IRenderingOptions options) | Returns a Thumbnail Bitmap object. |
| getThumbnail(IRenderingOptions options, float scaleX, float scaleY) | Returns a Thumbnail Bitmap object with custom scaling. |
| getImage(IRenderingOptions options, float scaleX, float scaleY) | Returns a Thumbnail Bitmap object with custom scaling. |
| getThumbnail(IRenderingOptions options, Size imageSize) | Returns a Thumbnail Bitmap object with specified size. |
| getImage(IRenderingOptions options, Size imageSize) | Returns a Thumbnail Bitmap object with specified size. |
| renderToGraphics(IRenderingOptions options, Canvas graphics) | Renders certain slide to a Graphics object. |
| renderToGraphics(IRenderingOptions options, Canvas graphics, float scaleX, float scaleY) | Renders certain slide to a Graphics object with custom scaling. |
| renderToGraphics(IRenderingOptions options, Canvas graphics, Size renderingSize) | Renders certain slide to a Graphics object using specified size. |
| getLayoutSlide() | Returns or sets the layout slide for the current slide. |
| setLayoutSlide(ILayoutSlide value) | Returns or sets the layout slide for the current slide. |
| getNotesSlideManager() | Allow to access notes slide, add and remove it. |
| getSlideComments(ICommentAuthor author) | Returns all slide comments added by specific author. |
| writeAsSvg(OutputStream stream) | Saves the slide content as an SVG file. |
| writeAsSvg(OutputStream stream, ISVGOptions svgOptions) | Saves the slide content as an SVG file. |
| writeAsEmf(OutputStream stream) | Saves the slide content as an EMF file. |
| remove() | Removes slide from presentation. |
| reset() | Resets position, size and formatting of every shape that has a prototype on LayoutSlide. |
getHeaderFooterManager()
public abstract ISlideHeaderFooterManager getHeaderFooterManager()
Returns HeaderFooter manager of the slide. Read-only ISlideHeaderFooterManager.
Returns: ISlideHeaderFooterManager
getSlideNumber()
public abstract int getSlideNumber()
Returns a number of slide. Index of slide in IPresentation.getSlides collection is always equal to SlideNumber - 1. Read/write int.
Returns: int
setSlideNumber(int value)
public abstract void setSlideNumber(int value)
Returns a number of slide. Index of slide in IPresentation.getSlides collection is always equal to SlideNumber - 1. Read/write int.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
getHidden()
public abstract boolean getHidden()
Determines whether the specified slide is hidden during a slide show. Read/write boolean.
Returns: boolean
setHidden(boolean value)
public abstract void setHidden(boolean value)
Determines whether the specified slide is hidden during a slide show. Read/write boolean.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
getThumbnail(float scaleX, float scaleY)
public abstract Bitmap getThumbnail(float scaleX, float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| scaleX | float | The value by which to scale this Thumbnail in the x-axis direction. |
| scaleY | float | The value by which to scale this Thumbnail in the y-axis direction. |
Returns: android.graphics.Bitmap - Bitmap object android.graphics.Bitmap
getImage(float scaleX, float scaleY)
public abstract IImage getImage(float scaleX, float scaleY)
Returns an image object with custom scaling.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| scaleX | float | The value by which to scale this Thumbnail in the x-axis direction. |
| scaleY | float | The value by which to scale this Thumbnail in the y-axis direction. |
Returns: IImage - Image object android.graphics.Bitmap
getThumbnail()
public abstract Bitmap getThumbnail()
Returns a Thumbnail Image object (20% of real size).
Returns: android.graphics.Bitmap - Bitmap object android.graphics.Bitmap
getImage()
public abstract IImage getImage()
Returns a Thumbnail Image object (20% of real size).
Returns: IImage - Image object android.graphics.Bitmap
getThumbnail(Size imageSize)
public abstract Bitmap getThumbnail(Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| imageSize | Size | Size of the image to create. |
Returns: android.graphics.Bitmap - Bitmap object.
getImage(Size imageSize)
public abstract IImage getImage(Size imageSize)
Returns an image object with specified size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| imageSize | Size | Size of the image to create. |
Returns: IImage - Bitmap object.
getThumbnail(ITiffOptions options)
public abstract Bitmap getThumbnail(ITiffOptions options)
Returns a Thumbnail tiff bitmap object with specified parameters.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | ITiffOptions | Tiff options. |
Returns: android.graphics.Bitmap - Bitmap object.
getImage(ITiffOptions options)
public abstract IImage getImage(ITiffOptions options)
Returns a Thumbnail tiff bitmap object with specified parameters.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | ITiffOptions | Tiff options. |
Returns: IImage - Image object.
getThumbnail(IRenderingOptions options)
public abstract Bitmap getThumbnail(IRenderingOptions options)
Returns a Thumbnail Bitmap object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
Returns: android.graphics.Bitmap - Bitmap objects.
getImage(IRenderingOptions options)
public abstract IImage getImage(IRenderingOptions options)
Returns a Thumbnail Bitmap object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
Returns: IImage - Bitmap objects.
getThumbnail(IRenderingOptions options, float scaleX, float scaleY)
public abstract Bitmap getThumbnail(IRenderingOptions options, float scaleX, float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| scaleX | float | The value by which to scale this Thumbnail in the x-axis direction. |
| scaleY | float | The value by which to scale this Thumbnail in the y-axis direction. |
Returns: android.graphics.Bitmap - Bitmap objects.
getImage(IRenderingOptions options, float scaleX, float scaleY)
public abstract IImage getImage(IRenderingOptions options, float scaleX, float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| scaleX | float | The value by which to scale this Thumbnail in the x-axis direction. |
| scaleY | float | The value by which to scale this Thumbnail in the y-axis direction. |
Returns: IImage - Bitmap objects.
getThumbnail(IRenderingOptions options, Size imageSize)
public abstract Bitmap getThumbnail(IRenderingOptions options, Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| imageSize | Size | Size of the image to create. |
Returns: android.graphics.Bitmap - Bitmap objects.
getImage(IRenderingOptions options, Size imageSize)
public abstract IImage getImage(IRenderingOptions options, Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| imageSize | Size | Size of the image to create. |
Returns: IImage - Bitmap objects.
renderToGraphics(IRenderingOptions options, Canvas graphics)
public abstract void renderToGraphics(IRenderingOptions options, Canvas graphics)
Renders certain slide to a Graphics object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| graphics | android.graphics.Canvas | The object where to render to. |
renderToGraphics(IRenderingOptions options, Canvas graphics, float scaleX, float scaleY)
public abstract void renderToGraphics(IRenderingOptions options, Canvas graphics, float scaleX, float scaleY)
Renders certain slide to a Graphics object with custom scaling.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| graphics | android.graphics.Canvas | The object where to render to. |
| scaleX | float | The scale for rendering the slide (1.0 is 100%) in the x-axis direction. |
| scaleY | float | The scale for rendering the slide (1.0 is 100%) in the y-axis direction. |
renderToGraphics(IRenderingOptions options, Canvas graphics, Size renderingSize)
public abstract void renderToGraphics(IRenderingOptions options, Canvas graphics, Size renderingSize)
Renders certain slide to a Graphics object using specified size.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | IRenderingOptions | Rendering options. |
| graphics | android.graphics.Canvas | The object where to render to. |
| renderingSize | Size | The maximum dimensions (in pixels) that can be occupied by the rendered slide. |
getLayoutSlide()
public abstract ILayoutSlide getLayoutSlide()
Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.
Returns: ILayoutSlide
setLayoutSlide(ILayoutSlide value)
public abstract void setLayoutSlide(ILayoutSlide value)
Returns or sets the layout slide for the current slide. Read/write ILayoutSlide.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ILayoutSlide |
getNotesSlideManager()
public abstract INotesSlideManager getNotesSlideManager()
Allow to access notes slide, add and remove it. Read-only INotesSlideManager.
Returns: INotesSlideManager
getSlideComments(ICommentAuthor author)
public abstract IComment[] getSlideComments(ICommentAuthor author)
Returns all slide comments added by specific author.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| author | ICommentAuthor | Author of comments to find or null to return all comments. |
Returns: com.aspose.slides.IComment[] - Array of IComment.
writeAsSvg(OutputStream stream)
public abstract void writeAsSvg(OutputStream stream)
Saves the slide content as an SVG file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | Target stream |
writeAsSvg(OutputStream stream, ISVGOptions svgOptions)
public abstract void writeAsSvg(OutputStream stream, ISVGOptions svgOptions)
Saves the slide content as an SVG file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | Target stream |
| svgOptions | ISVGOptions | SVG generation options |
writeAsEmf(OutputStream stream)
public abstract void writeAsEmf(OutputStream stream)
Saves the slide content as an EMF file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | Target stream |
remove()
public abstract void remove()
Removes slide from presentation.
reset()
public abstract void reset()
Resets position, size and formatting of every shape that has a prototype on LayoutSlide.