init()

Description

Creates a DcsImage object from UIImage.

Syntax

func init(image:UIImage)

Parameters

image:UIImage The image data to create the object from.

Return value

Any

Remarks

When image is nil, the exception DcsValueNotValidException will be thrown.

Example


class ViewController: UIViewController{
    
override func viewDidLoad() {
    super.viewDidLoad()
    var uiImage=UIImage(named:"xxx.xxx")
    var dcsImage=DcsImage.init(uiImage)
}
}
Is this page helpful?

Leave a Reply

Your email address will not be published.