zui docs v0.0.5
GitHub ↗
Multimedia and capture Native Qt

Image Capture

Image Capture is a native Zui component in the multimedia and capture catalog, with 7 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
session = capture_session camera_active: true
image_capture session, quality: :high, format: :jpeg, command: :capture, path: "captures/photo.jpg", command_revision: 1
API

Component properties

7 component-specific values, plus shared item and layout properties.

sessionSession configuration for Image Capture.property
qualityQuality configuration for Image Capture.property
formatFormat configuration for Image Capture.property
commandCommand configuration for Image Capture.property
pathPath configuration for Image Capture.property
command_revisionCommand revision configuration for Image Capture.property
visibleVisible configuration for Image Capture.property
Show 16 shared item properties
enabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

capturedNative event payload
savedNative event payload
errorNative event payload
ready_changeNative event payload