예제 #1
0
 public GeneralImage(GeneralImageModel model, CenteredImageModel centeredImageModel, BitmapScalingMode scaling = BitmapScalingMode.NearestNeighbor, MouseButtonEventHandler clickHandler = null)
 {
     InitializeComponent();
     RenderOptions.SetBitmapScalingMode(Image, scaling);
     Model = model;
     CenteredImageModel = centeredImageModel;
     if (clickHandler != null)
     {
         Image.MouseLeftButtonDown += clickHandler;
     }
     CreateBindings();
 }
예제 #2
0
 public GeneralImage(GeneralImageModel model, BitmapScalingMode scaling = BitmapScalingMode.NearestNeighbor, MouseButtonEventHandler clickHandler = null) : this(model, null, scaling, clickHandler)
 {
 }