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

Syntax

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

Parameters

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

Example

Private Sub Command1_Click()
   PlayGif1.Close
   PlayGif1.LoadGif "c:\test.gif"
   Dim i As Long
   For i = 0 To PlayGif1.GetFrameCount - 1
       PlayGif1.SaveBmpFile i, "c:\test_" & i & ".bmp"
   Next
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