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

RFC - allow setting of a RGB color on P images #1664

Closed
wiredfool opened this issue Jan 15, 2016 · 1 comment
Closed

RFC - allow setting of a RGB color on P images #1664

wiredfool opened this issue Jan 15, 2016 · 1 comment

Comments

@wiredfool
Copy link
Member

The current implementation of putpixel requires that the color passed in for P mode images be an integer.

It would be a useful and reasonable to accept an RGB(A) color, look it up in the palette (or allocate an entry if possible) and then pass that integer into the core putpixel method.

@radarhere
Copy link
Member

radarhere commented Dec 31, 2018

I've created PR #3519 to resolve this.

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

No branches or pull requests

2 participants