Example #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
     {
     }
 }
Example #2
0
 public override string ToString()
 {
     return(">Name:" + name + ",ID:" + id + ",Type:" + type.ToString() + ",ShowMode:" + mode.ToString() + ",Collider:" + collider.ToString());
 }