Help :save image in sequences

May 25, 2012 at 2:18 PM


        private void Snapshot_Click(object sender, RoutedEventArgs e)
        {


            BitmapSource image = (BitmapSource)ColorVideo.Source;
            image.Save(@"C:\Snapshot\snapshot ", ImageFormat.Jpeg);
          

        }

 

 

this is the code using coding4fun to save RGB image . However if i want to save the RGB images in sequences , what should i do??

 

 

i try to do the following but failed .Any idea?

 

int count3 = 1;
        private void Snapshot_Click(object sender, RoutedEventArgs e)
        {


            BitmapSource image = (BitmapSource)ColorVideo.Source;
            image.Save(@"C:\Snapshot\snapshot " + count3 + ", ImageFormat.Jpeg");
            ++count3;

        }