LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOWTO: Taking a still image and saving it out (V16, VB6, COM Interop)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, October 27, 2008 10:35:46 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
For this demo you will require Imaging Pro v16 toolkit and of the Multimedia v16 toolkit. This demo shows you how to use the Video Callback filter and the Imaging Pro toolkit with COM Interop to take a still image and saving it out. There are 2 reasons for using the Video Callback filter over the more simple GetStillDIB()/SaveStillDIB() method:
1. If your card doesn't support GetStillDIB()/SaveStillDIB().
2. You want to take a still while you are capturing the video. (If you called StartCapture(ltmmCapture_Mode_Video) you cannot call GetStillDIB()/SaveStillDIB().) With the Video Callback filter you can take a still while it's in video capture mode or if the capture has not been started.
This is a VB6 project, and you simply extract it and build the exe or run the project. Once you have it running follow these steps:
1. Select your video device and press the "Switch to Selected Device" button.
2. Press the "Take Still" button. You will be shown the still image to the right.
3. Press the "Save Still Image" button to save it to file. It will save it as a BMP, but you can modify the code to save it as any format supported.
LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOWTO: Taking a still image and saving it out (V16, VB6, COM Interop)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.