Open sotrosh opened 4 years ago
Hi, Here is a code I use to generate barcode:
RSUnifiedCodeGenerator.shared.strokeColor = .red RSUnifiedCodeGenerator.shared.fillColor = .blue result = RSUnifiedCodeGenerator.shared.generateCode("2166529V", machineReadableCodeObjectType: AVMetadataObject.ObjectType.aztec.rawValue) result = RSAbstractCodeGenerator.resizeImage(result, scale: 10)
The problem that after resizing the barcode doesn't keep colors I set before. How to set colors after image resizing?
Hi, Here is a code I use to generate barcode:
RSUnifiedCodeGenerator.shared.strokeColor = .red RSUnifiedCodeGenerator.shared.fillColor = .blue result = RSUnifiedCodeGenerator.shared.generateCode("2166529V", machineReadableCodeObjectType: AVMetadataObject.ObjectType.aztec.rawValue) result = RSAbstractCodeGenerator.resizeImage(result, scale: 10)
The problem that after resizing the barcode doesn't keep colors I set before. How to set colors after image resizing?