Ejemplo n.º 1
0
 private void updateFrameStats(WriteableBitmap bmp, int w, int h)
 {
     try
     {
         Dispatcher.Invoke(new Action(() =>
         {
             imgPreview.Source  = bmp;
             imgPreview.Stretch = Stretch.UniformToFill;
             lblStatus.Content  = fps + " fps " + w + "x" + h + " " + selectedTool.ToString();
         }));
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(">Name:" + name + ",ID:" + id + ",Type:" + type.ToString() + ",ShowMode:" + mode.ToString() + ",Collider:" + collider.ToString());
 }