Image AutoZoom
Hallo,
i have create a fastreport report on windows with FastReport.NET. The same Report does work on FastReport.Mono because of Image AutoZoom is not working. i search i the source code and found
src/FastReport.Mono/PictureObject.cs
case PictureBoxSizeMode.Zoom:
/*float kx = drawRect.Width / imageWidth;
float ky = drawRect.Height / imageHeight;
if (kx < ky)
rect.Height = imageHeight * kx;
else
rect.Width = imageWidth * ky;
rect.Offset(
(Width * e.ScaleX - rect.Width) / 2,
(Height * e.ScaleY - rect.Height) / 2);*/
break;
i have remove the block comment, recompile and all works.
i have create a fastreport report on windows with FastReport.NET. The same Report does work on FastReport.Mono because of Image AutoZoom is not working. i search i the source code and found
src/FastReport.Mono/PictureObject.cs
case PictureBoxSizeMode.Zoom:
/*float kx = drawRect.Width / imageWidth;
float ky = drawRect.Height / imageHeight;
if (kx < ky)
rect.Height = imageHeight * kx;
else
rect.Width = imageWidth * ky;
rect.Offset(
(Width * e.ScaleX - rect.Width) / 2,
(Height * e.ScaleY - rect.Height) / 2);*/
break;
i have remove the block comment, recompile and all works.
Comments
I have found a bug in your code (not my code)! Have anyone interrest in this ?????? That is really bad.
https://support.fast-report.com/users/sign_in
Ideally you should create a minimal example that clearly replicates the problem.