IGifOptions
All Implemented Interfaces: com.aspose.slides.ISaveOptions
public interface IGifOptions extends ISaveOptions
Represents GIF exporting options.
Methods
Method | Description |
---|---|
getFrameSize() | Gets or sets frame size. |
setFrameSize(Dimension value) | Gets or sets frame size. |
getExportHiddenSlides() | Determines whether hidden slides will be exported. |
setExportHiddenSlides(boolean value) | Determines whether hidden slides will be exported. |
getTransitionFps() | Gets or sets transition FPS [frames/sec] The default value is 25. |
setTransitionFps(int value) | Gets or sets transition FPS [frames/sec] The default value is 25. |
getDefaultDelay() | Gets or sets default delay time [ms]. |
setDefaultDelay(int value) | Gets or sets default delay time [ms]. |
getFrameSize()
public abstract Dimension getFrameSize()
Gets or sets frame size.
If the size is empty then the value will be taken from (IPresentation.getSlideSize)
Returns: java.awt.Dimension
setFrameSize(Dimension value)
public abstract void setFrameSize(Dimension value)
Gets or sets frame size.
If the size is empty then the value will be taken from (IPresentation.getSlideSize)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Dimension |
getExportHiddenSlides()
public abstract boolean getExportHiddenSlides()
Determines whether hidden slides will be exported. The default value is false.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setExportHiddenSlides(false); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Returns: boolean
setExportHiddenSlides(boolean value)
public abstract void setExportHiddenSlides(boolean value)
Determines whether hidden slides will be exported. The default value is false.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setExportHiddenSlides(false); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
getTransitionFps()
public abstract int getTransitionFps()
Gets or sets transition FPS [frames/sec] The default value is 25.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setTransitionFps(60); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Returns: int
setTransitionFps(int value)
public abstract void setTransitionFps(int value)
Gets or sets transition FPS [frames/sec] The default value is 25.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setTransitionFps(60); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getDefaultDelay()
public abstract int getDefaultDelay()
Gets or sets default delay time [ms]. This value will be used if (ISlideShowTransition.getAdvanceAfterTime/ISlideShowTransition.setAdvanceAfterTime(long)) is not set. The default value is 1000.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setDefaultDelay(2000); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Returns: int
setDefaultDelay(int value)
public abstract void setDefaultDelay(int value)
Gets or sets default delay time [ms]. This value will be used if (ISlideShowTransition.getAdvanceAfterTime/ISlideShowTransition.setAdvanceAfterTime(long)) is not set. The default value is 1000.
Presentation pres = new Presentation("pres.pptx"); try { GifOptions gifOptions = new GifOptions(); gifOptions.setDefaultDelay(2000); pres.save("pres.gif", SaveFormat.Gif, gifOptions); } finally { if (pres != null) pres.dispose(); }
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |