Capture

 

Take a picture from a camera device on Windows.

miyako/4d-plugin-capture-with-preview


device:=CAPTURE DEVICE Get default
Parameter
Type
Description
device
TEXT

Returns the name of the default image capture device.

CAPTURE DEVICE LIST (devices)
Parameter
Type
Description
devices
ARRAY TEXT

Returns the names of all image capture devices.

context:=CAPTURE PREVIEW Create (device)
Parameter
Type
Description
device
TEXT
context
LONGINT

Create a capture context.

CAPTURE PREVIEW CLEAR  (context)
Parameter
Type
Description
context
LONGINT

Destroy a capture context.

CAPTURE PREVIEW SET WINDOW  (context;window)
window:=CAPTURE PREVIEW Get window  (context)
Parameter
Type
Description
context
LONGINT
window
LONGINT

Attach a capture context to a window.

CAPTURE PREVIEW SET RECT (context;left;top;right;bottom)
CAPTURE PREVIEW GET RECT (context;left;top;right;bottom)
Parameter
Type
Description
context
LONGINT
left
LONGINT
top
LONGINT
right
LONGINT
bottom
LONGINT

Position the preview area.

CAPTURE PREVIEW SET VISIBLE (context;visible)
visible:=CAPTURE PREVIEW Get visible(context)
Parameter
Type
Description
context
LONGINT
visible
LONGINT

Show or hide the preview area.

CAPTURE PREVIEW SNAP (context;snapshot)
Parameter
Type
Description
context
LONGINT
snapshot
PICTURE

Take a snapshot picture.