IGifOptions

All Implemented Interfaces: com.aspose.slides.ISaveOptions

public interface IGifOptions extends ISaveOptions

Represents GIF exporting options.

Methods

MethodDescription
getFrameSize()Gets or sets frame size.
setFrameSize(Size 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 Size getFrameSize()

Gets or sets frame size.


If the size is empty then the value will be taken from (IPresentation.getSlideSize)

Returns: Size

setFrameSize(Size value)

public abstract void setFrameSize(Size value)

Gets or sets frame size.


If the size is empty then the value will be taken from (IPresentation.getSlideSize)

Parameters:

ParameterTypeDescription
valueSize

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valueint