SetFrameInterval
This method changes a frame's play time of an animated GIF when play.

Syntax

PlayGif1.SetFrameInterval ( index As Long, interval As Long) As Boolean

Parameters

Parameter Description
index A long value indicates the frame number
interval A long value indicates the play time based on 1/100 second


Return Value

The return values for this sub are:

Value Description
True The frame was set to a new play time successfully
False Failed to set the frame's play time

Example

Private Sub Command1_Click()
   PlayGif1.Close
   PlayGif1.LoadGif "c:\test.gif"
   Dim i As Long
   For i = 0 To PlayGif1.GetFrameCount - 1
       PlayGif1.SetFrameInterval i, 50
   Next
   PlayGif1.Play
End Sub


Back to Animated Gif Banner Maker

Back to Animated Gif OCX Control







Copyright ? 2002-2003, banner-maker.net, All Rights Reserved.

Home - Download - Buy Now - Frequently Asked Questions - Online Help - Animated GIF OCX Control - OCX Help - Links

www.banner-maker.net