Skip to content

Preview magic pixel colors in editor #62

@SimplyLiz

Description

@SimplyLiz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions