Can I somehow get size of an image (of any SOIL supports)?
I know that there are different headers in image files which define these sizes. But is there any function from SOIL to get image size?
Can I somehow get size of an image (of any SOIL supports)?
I know that there are different headers in image files which define these sizes. But is there any function from SOIL to get image size?
Copyright © 2021 Jogjafile Inc.
SOIL_load_image()
will populate the width/height parameters with the dimensions of the image, though it does a full load of the image to do so:The underlying
stb_image.h
has routines that don't load the full image: