Skip to content

Commit 4605ded

Browse files
Merge pull request #74 from dynamsoft-docs/preview
Updated for maui 3.4.1200
2 parents ab6ec2e + 4d0a535 commit 4605ded

7 files changed

Lines changed: 62 additions & 13 deletions

File tree

programming/maui/api-reference/camera-enhancer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class CameraEnhancer : ImageSourceAdapter
4444
| [`GetFocusMode`](#getfocusmode) | Set the focus point of interest and trigger an one-off auto-focus. After the focus, you can either lock the focalngth or keep the continuous auto focus enabled by configuring the subsequent focus mode. |
4545
| [`TurnOnTorch`](#turnontorch) | Turn on the torch. |
4646
| [`TurnOffTorch`](#turnofftorch) | Turn off the torch. |
47+
| [`SetResolution`](#setresolution) | Set the resolution of the camera. |
4748
| [`TakePhoto`](#takephoto) | Take a photo. |
4849

4950
The following methods are inherited from superclass [`ImageSourceAdapter`]({{ site.dcv_maui_api }}core/image-source-adapter.html)
@@ -256,6 +257,18 @@ Turn off the torch.
256257
void TurnOffTorch();
257258
```
258259

260+
### SetResolution
261+
262+
Set the resolution of the camera.
263+
264+
```csharp
265+
void SetResolution(EnumResolution resolution);
266+
```
267+
268+
**Parameters**
269+
270+
`resolution`: One of the [`EnumResolution`]({{ site.dce_maui_api }}enum/resolution.html) value.
271+
259272
### TakePhoto
260273

261274
Take a photo.

programming/maui/api-reference/enum/camera-position.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ noTitleIndex: true
99
breadcrumbText: CameraPosition
1010
---
1111

12-
# Enumeration CameraPosition
12+
# EnumCameraPosition
1313

1414
`CameraPosition` describes the camera position.
1515

@@ -29,11 +29,11 @@ public enum EnumCameraPosition : int
2929
/**
3030
* The back-facing ultra-wide-angle camera. It is an ultra-wide-angle camera for macro-distance capturing.
3131
*/
32-
CP_BACK_ULTRA_WIDE,
32+
CP_BACK_ULTRA_WIDE = 2,
3333
/**
3434
* A back-facing virtual camera. It is a vitural camera that can switch between the wide-angle camera and the ultra-wide-angle camera automatically.
3535
* Supported devices include: iPhone 13 Pro, iPhone 13 Pro Max, and all subsequent Pro and Pro Max models.
3636
*/
37-
CP_BACK_DUAL_WIDE_AUTO
37+
CP_BACK_DUAL_WIDE_AUTO = 3
3838
}
3939
```

programming/maui/api-reference/enum/drawing-layer-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ noTitleIndex: true
99
breadcrumbText: EnumDrawingLayerId
1010
---
1111

12-
# Enumeration EnumDrawingLayerId
12+
# EnumDrawingLayerId
1313

1414
`EnumDrawingLayerId` describes the layer ID.
1515

programming/maui/api-reference/enum/drawing-style-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ noTitleIndex: true
99
breadcrumbText: EnumDrawingStyleId
1010
---
1111

12-
# Enumeration EnumDrawingStyleId
12+
# EnumDrawingStyleId
1313

1414
`EnumDrawingStyleId` describes the drawing style IDs.
1515

programming/maui/api-reference/enum/enhanced-features.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ noTitleIndex: true
99
breadcrumbText: EnhancedFeatures
1010
---
1111

12-
# Enumeration EnhancedFeatures
12+
# EnumEnhancedFeatures
1313

1414
`EnhancedFeatures` describes the enhanced camera controlling features.
1515

@@ -23,16 +23,16 @@ breadcrumbText: EnhancedFeatures
2323
public enum EnumEnhancedFeatures : int
2424
{
2525
//Enable the Frame filter feature
26-
EF_FRAME_FILTER = 0x01,
26+
EF_FRAME_FILTER = 1 << 0,
2727
//Enable the sensor control feature
28-
EF_SENSOR_CONTROL = 0x02,
28+
EF_SENSOR_CONTROL = 1 << 1,
2929
//Enable the camera focus features
30-
EF_ENHANCED_FOCUS = 0x04,
30+
EF_ENHANCED_FOCUS = 1 << 2,
3131
//Enable the autozoom feature
32-
EF_AUTO_ZOOM = 0x10,
32+
EF_AUTO_ZOOM = 1 << 3,
3333
//Enable the smart torch button
34-
EF_SMART_TORCH = 0x20,
34+
EF_SMART_TORCH = 1 << 4,
3535
// Enable all
36-
EF_ALL = 0x3F
36+
EF_ALL = int.MaxValue
3737
}
3838
```

programming/maui/api-reference/enum/focus-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ noTitleIndex: true
99
breadcrumbText: FocusMode
1010
---
1111

12-
# Enumeration FocusMode
12+
# EnumFocusMode
1313

1414
`FocusMode` describes the focus mode.
1515

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: default-layout
3+
title: EnumResolution - Dynamsoft Capture Vision MAUI Edition
4+
description: The enumeration EnumResolution of Dynamsoft Capture Vision MAUI describes the camera resolutions.
5+
keywords: resolution
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
breadcrumbText: Resolution
10+
---
11+
12+
# EnumResolution
13+
14+
`Resolution` describes the focus mode.
15+
16+
## Definition
17+
18+
*Namespace:* Dynamsoft.CameraEnhancer.Maui
19+
20+
*Assembly:* Dynamsoft.CaptureVisionRouter.Maui
21+
22+
```csharp
23+
public enum EnumResolution : int
24+
{
25+
RESOLUTION_AUTO = 0,
26+
RESOLUTION_480P = 1,
27+
// 720*1280
28+
RESOLUTION_720P = 2,
29+
// 1920*1080. Default
30+
RESOLUTION_1080P = 3,
31+
// 3840*2160
32+
RESOLUTION_4K = 4,
33+
// 4032*3024. For taking photos
34+
RESOLUTION_MAX = 5
35+
}
36+
```

0 commit comments

Comments
 (0)