windows - UWP image byte buffer RGBA to Xaml Control Image C++ -


i call upon great minds of fellow programmers answer question google not give me answer to.

i trying display raw image buffer rgba8 using xaml.controls.image. solutions found far in c# doesn't work c++ because used functions not available in c++. c# , c++ inconsistent.

i want use byte buffer because want manipulate image data pixel pixel.

int x = 0; int y = 0; int channelspresent = 0; const int chanreq = 4;  // raw byte buffer storing rgba pixel data. char* bytebuffimage = (char*)stbi_load("assets\\storelogo.png", &x, &y, &channelspresent, chanreq);  //what steps in between.  // type:(image) this? resulttexture->source =  

in c# seems easy:

https://social.msdn.microsoft.com/forums/vstudio/en-us/a7623393-039d-4664-827a-9050d41d0ae3/uwpc-i-want-to-display-an-image-as-a-bitmapimage-that-i-received-in-a-byte-stream-in-response?forum=wpdevelop

thank you.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -