GifOptions

Inheritance: java.lang.Object, com.aspose.slides.SaveOptions

All Implemented Interfaces: com.aspose.slides.IGifOptions

public class GifOptions extends SaveOptions implements IGifOptions

Represents GIF exporting options.

Constructors

Constructor Description
GifOptions() Initializes a new instance of the GifOptions class.

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].

GifOptions()

public GifOptions()

Initializes a new instance of the GifOptions class.

getFrameSize()

public final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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