layout | title | description | keywords | needAutoGenerateSidebar | needGenerateH3Content | breadcrumbText | permalink |
---|---|---|---|---|---|---|---|
default-layout |
DSScaledUpBarcodeImageUnit Class - Dynamsoft Barcode Reader iOS Edition |
DSScaledUpBarcodeImageUnit class represents a unit that contains scaled up barcode image. It inherits from the DSIntermediateResultUnit class. |
GetImageData, DSScaledUpBarcodeImageUnit, api reference |
true |
true |
DSScaledUpBarcodeImageUnit |
/programming/objectivec-swift/api-reference/scaled-up-barcode-image-unit.html |
The DSScaledUpBarcodeImageUnit
class represents a unit that contains scaled up barcode image. It inherits from the [DSIntermediateResultUnit
]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html) class.
Assembly: DynamsoftBarcodeReader.framework
>- Objective-C >- Swift > >1. ```objc @interface DSScaledUpBarcodeImageUnit: DSIntermediateResultUnit ``` 2. ```swift class ScaledUpBarcodeImageUnit: DSIntermediateResultUnit ```Methods | Description |
---|---|
getImageData |
The up-scaled barcode image. |
setImageData |
Set the up-scaled barcode image. |
The following methods are inherited from class [DSIntermediateResultUnit
]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html).
{%- include api-reference/intermediate-result-unit-ios.md -%}
Get the up-scaled barcode image.
>- Objective-C >- Swift > >1. ```objc -(nullable DSImageData *)getImageData; ``` 2. ```swift func getImageData() -> DSImageData? ```Return Value
Returns a [DSImageData
]({{ site.dcv_ios_api }}core/basic-structures/image-data.html) object as the up-scaled barcode image.
Set the up-scaled barcode image.
>- Objective-C >- Swift > >1. ```objc -(NSInteger)setImageData:(DSImageData *)imageData; ``` 2. ```swift func setImageData(_ imageData: DSImageData) -> Int ```Parameters
[in] imageData
: A [DSImageData
]({{ site.dcv_ios_api }}core/basic-structures/image-data.html) object as the up-scaled barcode image.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.