Class BarcodeImageConfiguration
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 4
Represents a configuration for the image to be generated by BarcodeGenerator.
C#Copypublic class BarcodeImageConfiguration
- Inheritance
-
System.ObjectBarcodeImageConfiguration
Constructors
BarcodeImageConfiguration(Int32, Int32, 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 |
---|---|---|
Int32 | width | The width of the image to be generated. |
Int32 | height | The height of the image to be generated. |
System.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 |
|
API Level: 4
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. |
System.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 |
|
API Level: 4
Properties
Declaration
C#Copypublic BarcodeImageFormat Format { get; }
Property Value
Type | Description |
---|---|
BarcodeImageFormat |
API Level: 4
Declaration
C#Copypublic int Height { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 4
Declaration
C#Copypublic string Path { get; }
Property Value
Type | Description |
---|---|
System.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.
API Level: 4
Declaration
C#Copypublic Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
API Level: 4
Declaration
C#Copypublic int Width { get; }
Property Value
Type | Description |
---|---|
Int32 |