Skip to content

Functions to get image dimensions quickly #626

@MysteriousJ

Description

@MysteriousJ

Would SDL_image be open to a PR with functions to get the width and height of an image without returning pixel data? I imagine a function such as:

bool IMG_GetDimensions_IO(SDL_IOStream *src, bool closeio, int* w, int* h)

This would do as little processing on the input stream as possible to find the width and height of the image, and output them in the w and h parameters, respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions