LitDev Extension API
LDWebCam
Provides access to a webcam.
Effect
The current effect.
Can be set using the Effect properties.
(e.g. LDWebCam.Effect = LDWebCam.EffectGray).
EffectBlocks
EffectBlue
EffectBulge
EffectContrast
EffectCyan
EffectFishEye
EffectFuzzy
EffectGamma
EffectGray
EffectGreen
EffectHue
EffectInverse
EffectJagged
EffectLightness
EffectMagenta
EffectNone
EffectOilPaint
EffectParameter
Effect parameter - see LDImage effects for the parameter values for effects.
EffectPixelate
EffectPosterise
EffectRed
EffectReflect
EffectRotate
EffectSaturation
EffectSnow
EffectSwirl
EffectYellow
End()
End the webcam display, call this before removing the webcam shape.
Interval
The webcam update minimim delay between updates in ms (default 20).
It will in practice be larger in many cases, especialyy with effects set.
Pause()
Pause the webcam updates.
PreWin8Mode
Use pre-Windows 8 method.
"True" or "False" (default).
Resume()
Resume the webcam updates.
Snapshot()
Take a snapshot and save it as a jpg with a SaveAs dialog.
SnapshotToFile(fileName)
Take a snapshot and save it to a file.
fileName File to save jpg snapshot to.
SnapshotToImageList()
Take a snapshot and save it to the ImageList (memory loaded image).
returns Returns the name of the image that was loaded.
Start(width,height)
Start a webcam display object (SmallBasic shape). If this is called more than once, multiple copies af the same webcam image are be generated.
This object can be moved, zommed, rotated etc using the standard Shapes methods.
Maximum resolution usually at 640 x 480 pixels, smaller may be faster.
width The width of the webcam display object.
height The height of the webcam display object.
returns The name of the webcam display object.