How can I get the width and height of a texture in pixels?

Thank you, it did the job.