yeahdongcn / RSBarcodes

1D and 2D barcodes scanner and generators for iOS7 with delightful controls.
MIT License
383 stars 59 forks source link

Optionally set fill and stroke color on code generators #24

Closed kmikael closed 9 years ago

kmikael commented 9 years ago

In the app me and my team is developing, we needed to set the background color of the generated barcode image to match the background color of the background view (a very light gray color).

We solved this by setting the fill color of the generated image to [UIColor clearColor] so that the barcode is just black lines on whatever background it happens to be on. This is also the reason why the generated image is not opaque anymore.

yeahdongcn commented 9 years ago

Thank you!

yeahdongcn commented 9 years ago

I will have the same done on the Swift version.

yeahdongcn commented 9 years ago

Swift version now done.

kmikael commented 9 years ago

Cool.

Don't you have to define the new properties on the unified code generator as well? And then forword them to the actual generator?

yeahdongcn commented 9 years ago

​I've just corrected this, thank you.​

Best Regards, Ye Xiaodong http://R0CKSTAR.anewlives.com/

On Wed, Feb 25, 2015 at 5:54 PM, Mikael Konutgan notifications@github.com wrote:

Cool.

Don't you have to define the new properties on the unified code generator as well? And then forword them to the actual generator?

— Reply to this email directly or view it on GitHub https://github.com/yeahdongcn/RSBarcodes/pull/24#issuecomment-75933439.