Class BarcodeImageConfiguration
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Represents a configuration for the image to be generated by BarcodeGenerator.
public class BarcodeImageConfiguration
- Inheritance
-
objectBarcodeImageConfiguration
Constructors
View SourceBarcodeImageConfiguration(int, int, string, BarcodeImageFormat)
Initializes a new instance of the BarcodeImageConfiguration class.
Declaration
public 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
var 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
public 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
var 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
View SourceFormat
Gets the format of the output image.
Declaration
public BarcodeImageFormat Format { get; }
Property Value
Type | Description |
---|---|
BarcodeImageFormat |
Height
Gets the height of the image.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
Path
Gets the path to the file that has to be generated.
Declaration
public 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.
Size
Gets the size of the image.
Declaration
public Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
Width
Gets the width of the image.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |