FadeOutDuration
IAudioFrame.FadeOutDuration property
Specifies the time duration for the ending fade-out of the media in milliseconds. Read/write Single.
public float FadeOutDuration { get; set; }
Examples
Example:
[C#]
using (Presentation pres = new Presentation())
{
// Add Audio Frame
IAudio audio = pres.Audios.AddAudio(File.ReadAllBytes("sampleaudio.mp3"));
IAudioFrame audioFrame = pres.Slides[0].Shapes.AddAudioFrameEmbedded(50, 50, 100, 100, audio);
// Set the duration of the ending fade for 500ms
audioFrame.FadeOutDuration = 500f;
pres.Save("AudioFrameFade_out.pptx", SaveFormat.Pptx);
}
See Also
- interface IAudioFrame
- namespace Aspose.Slides
- assembly Aspose.Slides