This method saves an animated GIF file's frame to a bmp file.


PlayGif1.SaveBmpFile ( index As Long, bmpFileName As String) As Boolean


Parameter Description
index A long value indicates the frame number that will be saved to a bmp file
bmpFileName A string value will be serve as the file name

Return Value

The return values for this sub are:

Value Description
True The frame was saved to bmp file successfully
False Failed to save the frame to bmp file


Private Sub Command1_Click()
   PlayGif1.LoadGif "c:\test.gif"
   Dim i As Long
   For i = 0 To PlayGif1.GetFrameCount - 1
       PlayGif1.SaveBmpFile i, "c:\test_" & i & ".bmp"
End Sub

Back to Animated Gif Banner Maker

Back to Animated Gif OCX Control

Copyright ? 2002-2003,, All Rights Reserved.

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