public SaliencyMap(GraphicalAnswerLayer answerLayer, double width, double height, int clusterSize = 50) { ISaliencyMap map = new MySaliencyMap((int) width, (int) height, clusterSize); foreach (var point in answerLayer.SaliencyMap.Points) { map.AddPoint((int) point.X, (int) point.Y); } map.Build(); Source = map.GetGraphic(32).ToBitmapSourceBis(); // Fix High-Dpi screen issue IsAnswered = ((ExerciseContent) answerLayer.Content).HasBeenCollected; }
public SaliencyMap(GraphicalAnswerLayer answerLayer, double width, double height, int clusterSize = 50) { ISaliencyMap map = new MySaliencyMap((int)width, (int)height, clusterSize); foreach (var point in answerLayer.SaliencyMap.Points) { map.AddPoint((int)point.X, (int)point.Y); } map.Build(); Source = map.GetGraphic(32).ToBitmapSourceBis(); // Fix High-Dpi screen issue IsAnswered = ((ExerciseContent)answerLayer.Content).HasBeenCollected; }