Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change color of resized barcode? #138

Open
sotrosh opened this issue Jun 17, 2020 · 0 comments
Open

How to change color of resized barcode? #138

sotrosh opened this issue Jun 17, 2020 · 0 comments

Comments

@sotrosh
Copy link

sotrosh commented Jun 17, 2020

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?

@sotrosh sotrosh changed the title How to change color of resized code? How to change color of resized barcode? Jun 17, 2020
@yeahdongcn yeahdongcn reopened this Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants