我想动态改变Image控件的大小但:ImageReport.Width := round(210 / 25.4 * ImageReport.Canvas.Font.PixelsPerInch);
ImageReport.Height := round(297 / 25.4 * ImageReport.Canvas.Font.PixelsPerInch);
用这种方法不能改变Image的大小nReportWidth := 794;
nReportHeight := 1123;
ImageReport.Width := nReportWidth;
ImageReport.Height := nReportHeight;
用这种方法可以改变Image大小
ImageReport.Height := round(297 / 25.4 * ImageReport.Canvas.Font.PixelsPerInch);
用这种方法不能改变Image的大小nReportWidth := 794;
nReportHeight := 1123;
ImageReport.Width := nReportWidth;
ImageReport.Height := nReportHeight;
用这种方法可以改变Image大小
AutoSize := True; 不能通过设置长宽的方式来改变大小,只有里面的内容改变它才改变
Stretch := False; 改变了长宽也看不到效果