Exemple #1
0
        private void TouchMouseEventManagerOnTouchMouseEvent(object sender, TouchMouseEventArgs touchMouseEventArgs)
        {
            var imageWidth  = touchMouseEventArgs.Status.m_dwImageWidth;
            var imageHeight = touchMouseEventArgs.Status.m_dwImageHeight;
            var image       = touchMouseEventArgs.Image;
            var imageSize   = touchMouseEventArgs.ImageSize;

            Dispatcher.BeginInvoke((Action)(() => { SensorImage.Source = BitmapSource.Create(imageWidth, imageHeight, 96, 96, PixelFormats.Gray8, null, image, imageWidth); }));
        }
		private void TouchMouseEventManagerOnTouchMouseEvent(object sender, TouchMouseEventArgs touchMouseEventArgs)
		{
			var imageWidth = touchMouseEventArgs.Status.m_dwImageWidth;
			var imageHeight = touchMouseEventArgs.Status.m_dwImageHeight;
			var image = touchMouseEventArgs.Image;
			var imageSize = touchMouseEventArgs.ImageSize;

			Dispatcher.BeginInvoke((Action)(() => { SensorImage.Source = BitmapSource.Create(imageWidth, imageHeight, 96, 96, PixelFormats.Gray8, null, image, imageWidth); }));
		}
		protected virtual void OnTouchMouseEvent(TouchMouseEventArgs touchmouseeventargs)
		{
			TouchMouseEvent?.Invoke(this, touchmouseeventargs);
		}
 protected virtual void OnTouchMouseEvent(TouchMouseEventArgs touchmouseeventargs)
 {
     TouchMouseEvent?.Invoke(this, touchmouseeventargs);
 }