How to load and display a local image with managed SDK?
Posted: 07 Jan 2019, 19:08
I'm trying to load a local bmp file as a texture so I can display it in an <Image> element in a view.
But the above code results in: texture == null
Code: Select all
string basePath = @"C:\samples";
NoesisApp.LocalTextureProvider localTextureProvider = new NoesisApp.LocalTextureProvider(basePath);
Texture texture = localTextureProvider.LoadTexture("test.bmp");
TextureSource textureSource = new TextureSource(texture);