private IEnumerator TakePictureRoutine(PictureCallback callback) { shouldTakePicture = true; yield return(0); callback(picture); }
public void TakePicture(PictureCallback callback, int width, int height) { if (renderTexture == null || renderTexture.width != width || renderTexture.height != height) { if (renderTexture != null) { DestroyTextureResources(); } CreateTextureResources(width, height); } StartCoroutine(TakePictureRoutine(callback)); }
public Form1() { InitializeComponent(); delReceive = delreceive; delPicture = delpicture; try { socketClient = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint Point = new IPEndPoint(IPAddress.Parse("119.146.68.41"), 5000); socketClient.Connect(Point); Send(); Thread thReceive = new Thread(Receive); thReceive.IsBackground = true; thReceive.Start(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback postview, PictureCallback jpeg) { }
public void takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback jpeg) { // will jsc inline such oneliners? takePicture(shutter, raw, null, jpeg); }