yeahdongcn / RSBarcodes_Swift

1D and 2D barcodes reader and generators for iOS 8 with delightful controls. Now Swift.
MIT License
707 stars 185 forks source link

Make size of generated barcode the same aspect ratio as the target #146

Closed mjrehder closed 3 years ago

mjrehder commented 3 years ago

Calculating the height given the width of the barcode. The same aspect ration of the given target size is used, so the the resulting image size can be scaled without problems.