![]() I debuged this App many times and it's OK. I think that some wrong codes may be added in while Loop. Some "Roseek" functions are from another DLLs. HelloMessage.Text = "While Loop! FetchFrame OK!" Using (IRandomAccessStream RandomAccessStream = new InMemoryRandomAccessStream())īitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.BmpEncoderId, RandomAccessStream) Įncoder.SetPixelData(BitmapPixelFormat.Bgra8, BitmapAlphaMode.Ignore, width, height, 96, 96, bgra) Īwait Dispatcher.RunAsync(Windows.UI., async () =>Īwait image.SetSourceAsync(RandomAccessStream) Īwait Dispatcher.RunAsync(Windows.UI., () => SoftwareBitmapSource sf = new SoftwareBitmapSource() SoftwareBitmap image = SoftwareBitmap.CreateCopyFromBuffer(ibuf, BitmapPixelFormat.Bgra8, (int)width, (int)height, BitmapAlphaMode.Ignore) * IBuffer ibuf = new (width * height * 4) PFrameToRGB(Framebytes, bgra, (int)width, (int)height) Ret = Roseek_ImageAcquisition_FetchFrame(Framebytes, buffsize, ref frameinfo, 1000) RawFrameInfo frameinfo = new RawFrameInfo() īyte bgra = new byte Ret = Roseek_ImageAcquisition_GetResolution(ref mode, ref x, ref y, ref width, ref height) ![]() This Project was based on Windows10 IoTCore "Hello World"Damo.I Want to show Image by pure rgb bytes array.So I added my code in this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |