RaspberryPiCameraMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to RaspberryPiCameraMBS class.

RaspberryPiCameraMBS.AvailableFormats as RaspberryPiCameraFormatDescriptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Queries available formats.

Lasterror and ErrorMessage are set.
Can return nil in case of error.

Some examples using this method:

RaspberryPiCameraMBS.Capture(WithPicture as boolean = true) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Captures a new picture.

If WithPicture is true and pixel format is compatible (RGB 24 or 32bit), we set the picture property.
If capturing JPEG, we copy the JPEG data into the JPEG property.

Returns true on success.
Lasterror and ErrorMessage are set.

RaspberryPiCameraMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Closes camera device.

Lasterror and ErrorMessage are set.

RaspberryPiCameraMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The constructor.

RaspberryPiCameraMBS.CurrentFormat as RaspberryPiCameraFormatMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Queries current format.

Returns nil in case of error.
Lasterror and ErrorMessage are set.

Some examples using this method:

RaspberryPiCameraMBS.InitBuffer as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Initializes buffer.

This is done automatically if you capture.

Returns true on success.
Lasterror and ErrorMessage are set.

Some examples using this method:

RaspberryPiCameraMBS.Open(Device as string = "/dev/video0") as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Opens the camera device.

You need


Returns true on success.
Lasterror and ErrorMessage are set.

RaspberryPiCameraMBS.SetCurrentFormat(format as RaspberryPiCameraFormatMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Sets current format.

This allows to use any format, even if we can't transform it to picture for you.

Returns true on success.
Lasterror and ErrorMessage are set.

RaspberryPiCameraMBS.SetJPEGSize(Width as Integer, Height as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Sets size and format to capture.

Sets JPEG format with given size.

Returns true on success.
Lasterror and ErrorMessage are set.

Some examples using this method:

RaspberryPiCameraMBS.SetSize(Width as Integer, Height as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Sets size and format to capture.

Sets to capture RGB picture with given size.

Returns true on success.
Lasterror and ErrorMessage are set.

The items on this page are in the following plugins: MBS Linux Plugin.


💬 Ask a question or report a problem