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(); }
public GeneralImage(GeneralImageModel model, BitmapScalingMode scaling = BitmapScalingMode.NearestNeighbor, MouseButtonEventHandler clickHandler = null) : this(model, null, scaling, clickHandler) { }