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

Uncontrollable blending #572

Closed
etki opened this issue Sep 26, 2017 · 1 comment · Fixed by #790
Closed

Uncontrollable blending #572

etki opened this issue Sep 26, 2017 · 1 comment · Fixed by #790
Milestone

Comments

@etki
Copy link

etki commented Sep 26, 2017

Hi!
I know project isn't actively maintained for a while, but still i hope things will change someday.
Currently, $image->draw()->dot(), at least for GD, forces color blending. This may be undesired - e.g., if i'm redrawing some kind of PNG, i may want to completely replace pixel instead of blending it with previous contents.
I guess methods like dot() should provide option (or array of options) for controlling behavior like this.

@mlocati
Copy link
Collaborator

mlocati commented Oct 7, 2021

With #790, when using the GD driver, you can write something like

$image->draw()->withAlphaBlending(false)->dot(...);

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

Successfully merging a pull request may close this issue.

2 participants