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

Support images with premultiplied alpha #7

Closed
Alloyed opened this issue Feb 22, 2017 · 2 comments
Closed

Support images with premultiplied alpha #7

Alloyed opened this issue Feb 22, 2017 · 2 comments

Comments

@Alloyed
Copy link
Contributor

Alloyed commented Feb 22, 2017

This is a crosspost of ocornut/imgui#1035

TL;DR: I want to use imgui with premultiplied alpha images, and there's no way (that I can find) to tell love-imgui to do that.
2017-02-22-115635_394x230_scrot

@slages
Copy link
Owner

slages commented Feb 23, 2017

I made a change to automatically apply the premultiplied alpha blend mode when imgui.Image or imgui.ImageButton is used to draw a Canvas, it should fix your issue!

I didn't made a new release, so you'll need to build a new version from source.

@Alloyed
Copy link
Contributor Author

Alloyed commented Mar 2, 2017

Yep, it works! This is maybe less flexible than I imagined (I couldn't have a normal Image use premultiplied alpha for example) but I wasn't planning on doing that sort of thing anyways.

@Alloyed Alloyed closed this as completed Mar 2, 2017
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