Skip to content

Documentation for RendererStyle and Fill to set foregroundColor and backgroundColor #91

Description

@danielmreck

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 RendererStyle in RendererStyle.php appears to provide access for this in the fifth argument. In the Fill constructor in Fill.php there are references to foregroundColor and backgroundColor.

However, I cannot determine the combination of use statements, 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions