Repository navigation
Documentation for RendererStyle and Fill to set foregroundColor and backgroundColor #225
Unanswered
danielmreck
asked this question in
Q&A
Replies: 3 comments
|
I agree, but I also found some nice example codes: |
0 replies
|
I'm open to accepting pull requests. |
0 replies
|
I am struggling with using modules and gradients, among other things. Ive managed to use background, foreground and eye colors, but that's about it. My code for now: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Do we have more thorough documentation available beyond what's in README.md? I've searched up and down and most of the examples I find elsewhere seem to rely on the previous version and do not work with 2.0.0.
For instance, I'd like to change the foreground and background colors of the QR code. The constructor for
RendererStylein RendererStyle.php appears to provide access for this in the fifth argument. In theFillconstructor in Fill.php there are references to foregroundColor and backgroundColor.However, I cannot determine the combination of
usestatements, classes, and method calls required to actually set the colors. May we have a bit of documentation added to README.md or the wiki demonstrating this functionality?Likewise, is there information about setting the bit-depth of generated PNGs? The default output is not compatible with FPDF.
Thank you.
All reactions