Image capturing, storage with various formates and processing in VC++