diff --git a/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs b/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs index e9bf39444..923ce34e9 100644 --- a/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs +++ b/Source/Krypton Components/Krypton.Toolkit/ButtonSpec/ButtonSpecView.cs @@ -321,9 +321,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; }