How do I get the width and height of an existing image file?

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

  • rbtwhizrbtwhiz Posts: 2,179
    edited January 2016

    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

    Post edited by rbtwhiz on
Sign In or Register to comment.