How do I get the width and height of an existing image file?
DraagonStorm
Posts: 748
I've tried a few things, but can't seem to figure out how I can get the width and height of an existing image file.
Comments
Pixmap and Image both provide constructors that take a path. Both also provide height, width, size and rect properties. DzTexture provides a
getOriginalImageSize()
method that returns a Size, which provides height and width properties.-Rob