Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 2.32 KB

scaled-up-barcode-image-unit.md

File metadata and controls

90 lines (68 loc) · 2.32 KB
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

DSScaledUpBarcodeImageUnit Class

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.

Definition

Assembly: DynamsoftBarcodeReader.framework

>- Objective-C >- Swift > >1. ```objc @interface DSScaledUpBarcodeImageUnit: DSIntermediateResultUnit ``` 2. ```swift class ScaledUpBarcodeImageUnit: DSIntermediateResultUnit ```

Methods

Methods Description
getImageData The up-scaled barcode image.
setImageData Set the up-scaled barcode image.

Inherited Methods

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 -%}

getImageData

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.

setImageData

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.