Skip to content

Suggestion: Make a factory method where you can put in a pre-existing array of pixel data previously obtained (like from a file) #1

@janerivi

Description

@janerivi

something like PNG.makeFromRgbaData(width,height,arrayRGBA); and it will return a PNG instance from your pre-existing data. I was about to try to implement it myself.. but I was confused about how the buffer was set up in your code.

The usecase is for the typical PNG data with 8 bits channels for r,g,b and alpha (wich is what people use 99.99 percent of the time I would assume.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions