Take pic and save the file

Hi, i want to make a function, like take a picture and then able to save the file but i dont know how to start this. can anyone tell me how to take a picture use webcam then save it as .jpg for example??

hi, and one more thing, how about print the image using connected printer?

assuming that you already know VideoIn (DShow9) and VideoTexture (EX9.Texture VMR9) it seems that you should have a look at Writer (EX9.Texture) .

for printing, try ShellExecute and ImageMagick’s lpr commandline tool

thanks, i know how to use writer, but now how to use ShellExecute? i want to print an image which attached in current quad texture?