问题
My Xamarin.IOS app gets build error: "cannot convert type byte[] to UIKit.UIImage"
My code:
ImageView_camera.Image = Camera_Socket_Client.packet_frame_state.buffer;
The buffer contains a frame sent by socket from a UWP Windows app, which got the frame from a USB camera from a Logitech HD 1080p webcam.
I want to show live image from webcam at IPAD.
回答1:
UIImage.LoadFromData(NSData.FromArray(myByteArray));
来源:https://stackoverflow.com/questions/53890842/how-to-convert-image-in-a-byte-array-to-xamarin-ios-uiimage-control