码迷,mamicode.com
首页 > 其他好文 > 详细

CIQRCodeGenerator Core Image Filter Reference

时间:2016-10-24 23:27:16      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:present   pac   aging   string   discus   addition   list   quick   oca   

https://developer.apple.com/library/prerelease/content/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIQRCodeGenerator

 

Generates a Quick Response code (two-dimensional barcode) from input data.

Localized Display Name

CIQRCodeGenerator

Parameters

inputMessage

The data to be encoded as a QR code. An NSData object whose display name is Message.

inputCorrectionLevel

A single letter specifying the error correction format. An NSString object whose display name is CorrectionLevel.

Default value: M

Discussion

Generates an output image representing the input data according to the ISO/IEC 18004:2006 standard. The width and height of each module (square dot) of the code in the output image is one point. To create a QR code from a string or URL, convert it to an NSData object using the NSISOLatin1StringEncoding string encoding.

The inputCorrectionLevel parameter controls the amount of additional data encoded in the output image to provide error correction. Higher levels of error correction result in larger output images but allow larger areas of the code to be damaged or obscured without. There are four possible correction modes (with corresponding error resilience levels):

  • L: 7%

  • M: 15%

  • Q: 25%

  • H: 30%

     

 

CIQRCodeGenerator Core Image Filter Reference

标签:present   pac   aging   string   discus   addition   list   quick   oca   

原文地址:http://www.cnblogs.com/feng9exe/p/5994929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!