예제 #1
0
    private IEnumerator TakePictureRoutine(PictureCallback callback)
    {
        shouldTakePicture = true;
        yield return(0);

        callback(picture);
    }
예제 #2
0
 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));
 }
예제 #3
0
 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());
     }
 }
예제 #4
0
 public void takePicture(ShutterCallback shutter, PictureCallback raw,
     PictureCallback postview, PictureCallback jpeg)
 {
 }
예제 #5
0
 public void takePicture(ShutterCallback shutter, PictureCallback raw,
     PictureCallback jpeg)
 {
     // will jsc inline such oneliners?
     takePicture(shutter, raw, null, jpeg);
 }
예제 #6
0
 public void takePicture(ShutterCallback shutter, PictureCallback raw,
                         PictureCallback jpeg)
 {
     // will jsc inline such oneliners?
     takePicture(shutter, raw, null, jpeg);
 }
예제 #7
0
 public void takePicture(ShutterCallback shutter, PictureCallback raw,
                         PictureCallback postview, PictureCallback jpeg)
 {
 }