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

Preview magic pixel colors in editor #62

Open
SimplyLiz opened this issue Jan 21, 2021 · 0 comments
Open

Preview magic pixel colors in editor #62

SimplyLiz opened this issue Jan 21, 2021 · 0 comments

Comments

@SimplyLiz
Copy link
Contributor

https://doc.qt.io/qt-5/qimage.html#QImage-4
here
there is a QImage constructor
you just have to give PixelBuffer::data()
as the buffer
& make sure that you don't destroy the pb until the image is destroyed
for format, use QImage::Format_RGBA8888
you can load a Pb using fs::readPNGImage
& you can also scale it

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

1 participant