Class BarcodeImageConfiguration
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Represents a configuration for the image to be generated by BarcodeGenerator.
C#Copypublic class BarcodeImageConfiguration
- Inheritance
-
objectBarcodeImageConfiguration
Constructors
BarcodeImageConfiguration(int, int, string, BarcodeImageFormat)
Initializes a new instance of the BarcodeImageConfiguration class.
Declaration
C#Copypublic BarcodeImageConfiguration(int width, int height, string path, BarcodeImageFormat imageFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The width of the image to be generated. |
| int | height | The height of the image to be generated. |
| string | path | The path to the file to be generated. |
| BarcodeImageFormat | imageFormat | The format of the output image. |
Remarks
The mediastorage privilege (http://tizen.org/privilege/mediastorage) is needed if the image path is relevant to media storage.
The externalstorage privilege (http://tizen.org/privilege/externalstorage) is needed if the image path is relevant to external storage.
Examples
Copyvar imageConfig = new BarcodeImageConfiguration(500, 400, "/opt/usr/test-barcode-generate-new", BarcodeImageFormat.JPG);
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.ArgumentNullException |
|
| System.ArgumentException |
|
BarcodeImageConfiguration(Size, string, BarcodeImageFormat)
Initializes a new instance of the BarcodeImageConfiguration class.
Declaration
C#Copypublic BarcodeImageConfiguration(Size size, string path, BarcodeImageFormat imageFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The Size of the generated image. |
| string | path | The path to the file to be generated. |
| BarcodeImageFormat | imageFormat | The format of the output image. |
Remarks
The mediastorage privilege (http://tizen.org/privilege/mediastorage) is needed if the image path is relevant to media storage.
The externalstorage privilege (http://tizen.org/privilege/externalstorage) is needed if the image path is relevant to external storage.
Examples
Copyvar imageConfig = new BarcodeImageConfiguration(new Size(500, 400), "/opt/usr/test-barcode-generate-new", BarcodeImageFormat.JPG);
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | The width of |
| System.ArgumentNullException |
|
| System.ArgumentException |
|
Properties
Declaration
C#Copypublic BarcodeImageFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| BarcodeImageFormat |
Declaration
C#Copypublic int Height { get; }
Property Value
| Type | Description |
|---|---|
| int |
Declaration
C#Copypublic string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The mediastorage privilege (http://tizen.org/privilege/mediastorage) is needed if the image path is relevant to media storage.
The externalstorage privilege (http://tizen.org/privilege/externalstorage) is needed if the image path is relevant to external storage.
Declaration
C#Copypublic Size Size { get; }
Property Value
| Type | Description |
|---|---|
| Size |
Declaration
C#Copypublic int Width { get; }
Property Value
| Type | Description |
|---|---|
| int |