LEADTOOLS Support
Imaging
Imaging SDK Questions
Differences between SaveStillBitmap & GetStillPicture
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, February 5, 2007 11:04:22 PM(UTC)
Groups: Registered
Posts: 13
Hi all!
What's the difference between:
ltmmPlayCtrl.GetStillPicture and ltmmPlayCtrl.SaveStillBitmap ?
I also don't understand what indicates the TimeOut
As Long parameter of the GetStillPicture method...
Another question... and the difference between the ltmmCaptureCtrl.CapturePicture method and then ltmmCaptureCtrl.GetStillPicture method??
Thankssss!!!
Miguel Angel.
#2
Posted
:
Tuesday, February 6, 2007 6:19:27 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
GetStillPicture returns an IPictureDisp object while SaveStillBitmap saves the bitmap to file. In other words, GetStillPicture saves the image in memory, SaveStillBitmap saves it to disk.
TimeOut allows you to specify a maximum amount of time to capture the still image. If it cannot retrieve an image within the timeout specified, the function will fail. If you pass -1, it will wait indefinitely.
CapturePicture does not allow you to specify a timeout. Therefore calling CapturePicture should do the same thing as GetStillPicture(-1)
#3
Posted
:
Sunday, February 25, 2007 12:29:11 AM(UTC)
Groups: Registered
Posts: 13
Hi Greg!!!
Thanks for your reply... but when I attempt to use GetStillPicture(-1) with a capture Card, an error message appears me:
"LTMM Error: No se ha podido realizar la operación por un estado
erróneo en el filtro" (sorry, the original message is in spanish!!!)
But if I try to do this (B):
'A)
'LEAD1.SetPicture
ltmmCaptureCtrl1(camA).GetStillPicture(-1)
'B)
Picture1.Picture =
ltmmCaptureCtrl1(camA).CapturePicture
LEAD1.SetPicture Picture1.Picture
all is ok!!! But case A) shows me the error message... do you know the error??
Thanks!
Miguel Angel.
Innomedia Seguridad Digital S.L.
majc@innomediaseguridad.comnewmiadpe attached the following image(s):
#4
Posted
:
Monday, February 26, 2007 12:23:14 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The rough translation of the error is that the filter is in the wrong state.
In order to use GetStillPicture, your capture object's Mode property must be set to ltmmCapture_Mode_Still. Therefore, you need to change temporarily change the Mode and then change it back after you have captured the still.
CapturePicture allows you to get a still picture without changing the state.
For more information, take a look at the help file article for GetStillPicture and CapturePicture. GetStillPicture includes a link to the different possible Modes that your capture object can use.
#5
Posted
:
Tuesday, February 27, 2007 8:14:52 AM(UTC)
Groups: Registered
Posts: 13
LEADTOOLS Support
Imaging
Imaging SDK Questions
Differences between SaveStillBitmap & GetStillPicture
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.