DesktopCaptureItem QML Type
Desktop capture preview for color picking. More...
| Import Statement: | import FluentUI.impl 1.0 |
Properties
Methods
- void capture()
Detailed Description
The DesktopCaptureItem type captures a region of the desktop screen and provides access to the captured image data and the color of the pixel under the cursor. It is primarily used in color picker controls.
Property Documentation
color : QColor
This read-only property holds the color value at the current cursor position in the captured desktop image.
desktop : QImage
This read-only property holds the full captured desktop image.
position : QPoint
This read-only property holds the current cursor position within the captured desktop coordinate space.
target : QImage
This read-only property holds the target preview region of the desktop capture, typically a zoomed-in area around the cursor.
Method Documentation
void capture()
Triggers a new desktop capture, updating the desktop, target, position, and color properties.