Skip to content

Commit d9b5b07

Browse files
committed
also print compatible resolutions of the camera
Signed-off-by: Umair Khan <[email protected]>
1 parent f675244 commit d9b5b07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/Capture/GettingStartedCapture/GettingStartedCapture.pde

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Capture cap;
1010
void setup() {
1111

1212
size(720, 1280, P2D);
13+
14+
//Use this to print list of resolutions supported by the camera
15+
Capture.printCompatibleResolutionsList(cap);
1316

1417
String[] cameras = Capture.list();
1518
cap = new Capture(this, cameras[0]);

0 commit comments

Comments
 (0)