IC Imaging Control ActiveX

ICImagingControl.MemorySaveImageSequence Method

ICImagingControl.MemorySaveImageSequence Method

This method saves a sequence of images as a sequence of single .png files.
Public Sub MemorySaveImageSequence(SequenceLength As Long, Filename As String)
Parameter Description

Specifies the number of images to be saved.


Specifies the base filename of the image files to be saved. It must contain a "*" character, which will be replaced by a frame number. For example, specifying a SequenceLength of 3 and "c:\test*.png" as a Filename will create the 3 files "c:\test000.png", "c:\test001.png" and "c:\test002.png".


This example will capture a sequence of 25 images to memory, and then save the images to 25 individual files. A "*" character is added to the filename to enable Imaging Control to insert a frame number:

Sub SaveImageSequence(ic As ICImagingControl, cmdlg As CommonDialog)
    On Error GoTo err_SaveImageSequence
    Const NumberOfImages = 25
    ic.ImageRingBufferSize = NumberOfImages
    ic.MemorySnapImageSequence NumberOfImages
    With cmdlg
        .Filter = "Bitmap (*.png)|*.png|"
        .CancelError = True
        ic.MemorySaveImageSequence NumberOfImages, _
            Left$(.FileName, Len(.FileName) - 4) & _
            "*" & _
            Right$(.FileName, 4)
    End With
    Exit Sub
    If Err <> cdlCancel Then MsgBox Err.Description
End Sub
See also: ICImagingControl, ICImagingControl.MemorySnapImageSequence, ICImagingControl.ImageRingBufferSize

<< ICImagingControl

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us