简体   繁体   中英

how to convert image in a byte[] array to Xamarin.IOS UIImage control

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.

UIImage.LoadFromData(NSData.FromArray(myByteArray));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM