Size of nodepath and window

I got a trouble in getting width and height of window and NodePath(2d image) …!

I believe you want to do something similar to the Media Player tutorial but instead of playing a movie, you want to display an image. If so, I suggest you take a look at the C++ sample program `media_player’ that you will find here:

Rip out the code related to the media player and replace the MovieTexture by a Texture that you fill using TexturePool::load_texture.

Thanks for your help, but this line :

card.set_tex_scale(TextureStage::get_default(), m_tex->get_tex_scale());

Texture doesn’t have function get_tex_scale()…

This line of code is for the MovieTexture. You may delete it.