ImageFrameSource#

Defined in framework ScanditCaptureCore

SDCImageFrameSource#
@interface SDCImageFrameSource : NSObject <SDCFrameSource>

Added in version 6.3.0

Emits a frame from the provided UIImage.

To emit the frame set this object as the frame source for the SDCDataCaptureContext and turn it on by changing the desired state to SDCFrameSourceStateOn. This frame source will turn off automatically after the frame is emitted.

+ frameSourceWithImage:#
+ (nonnull instancetype)frameSourceWithImage:(nonnull UIImage *)image

Added in version 6.3.0

Constructs a new SDCImageFrameSource from the provided UIImage.

The provided UIImage should have one of the following configuration:

Gray color space:

8 bits per pixel

8 bits per component

kCGImageAlphaNone

RGB color space:

32 bits per pixel

8 bits per component

kCGImageAlphaNoneSkipFirst

32 bits per pixel

8 bits per component

kCGImageAlphaNoneSkipLast

32 bits per pixel

8 bits per component

kCGImageAlphaPremultipliedFirst

32 bits per pixel

8 bits per component

kCGImageAlphaPremultipliedLast

- switchToDesiredState:#
- (void)switchToDesiredState:(SDCFrameSourceState)state

Added in version 6.3.0

Convenience method for SDCFrameSource.switchToDesiredState:completionHandler:: it is same as calling SDCFrameSource.switchToDesiredState:completionHandler: with the second argument set to nil.