Optimization - no need to update layout on each call

This commit is contained in:
Abdelrahman Mahmoud 2015-04-21 14:17:08 -04:00
parent 5e9ef929e9
commit 617c7375c9

View file

@ -263,7 +263,6 @@ namespace AffdexMe
canvasFacePoints.Children.Clear();
canvasFacePoints.Width = imgAffdexFaceDisplay.ActualWidth;
canvasFacePoints.Height = imgAffdexFaceDisplay.ActualHeight;
canvasFacePoints.UpdateLayout();
mImageXScaleFactor = imgAffdexFaceDisplay.ActualWidth / affdexImage.getWidth();
mImageYScaleFactor = imgAffdexFaceDisplay.ActualHeight / affdexImage.getHeight();