diff --git a/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs b/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs index c69d3f275..e78e7a07e 100644 --- a/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs +++ b/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs @@ -331,9 +331,10 @@ protected virtual void OnFinishDelegate(object sender, EventArgs? e) => { // Get value from button spec passing inheritance redirector Image? baseImage = ButtonSpec.GetImage(_redirector, state); + float dpiFactor = _controller?.Target.FactorDpiX ?? 1f; return (baseImage != null) - ? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * _controller.Target.FactorDpiX, - baseImage.Height * _controller.Target.FactorDpiY) + ? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * dpiFactor, + baseImage.Height * dpiFactor) : null; }