DSScaledUpBarcodeImageUnit Class
The DSScaledUpBarcodeImageUnit
class represents a unit that contains scaled up barcode image. It inherits from the DSIntermediateResultUnit
class.
Definition
Assembly: DynamsoftBarcodeReader.framework
- Objective-C
- Swift
@interface DSScaledUpBarcodeImageUnit: DSIntermediateResultUnit
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
.
Method | Description |
---|---|
getHashId |
Gets the hash ID of the unit. |
getOriginalImageHashId |
Gets the hash ID of the original image. |
getOriginalImageTag |
Gets the image tag of the original image. |
getType |
Gets the type of the intermediate result unit. |
getTransformMatrix |
Gets the transformation matrix via DSTransformMatrixType . |
clone |
Creates a copy of the intermediate result unit. |
replace |
Replaces the content of the intermediate result unit. |
getImageData
Get the up-scaled barcode image.
- Objective-C
- Swift
-(nullable DSImageData *)getImageData;
func getImageData() -> DSImageData?
Return Value
Returns a DSImageData
object as the up-scaled barcode image.
setImageData
Set the up-scaled barcode image.
- Objective-C
- Swift
-(NSInteger)setImageData:(DSImageData *)imageData;
func setImageData(_ imageData: DSImageData) -> Int
Parameters
[in] imageData
: A DSImageData
object as the up-scaled barcode image.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.