【发布时间】:2020-02-10 09:56:07
【问题描述】:
刚刚更新到最新的 Inno Setup v.6.0.3。但现在我的TBitmapImage 图像中有白色边框。下面的脚本在旧版本 5 上运行良好。
那么,我使用多年的新版本和脚本似乎有什么问题?
请注意,我已将显示缩放了大约 125%。
ExtractTemporaryFile(ExpandConstant( '{#BackgroundImage}' ));
BackgroundBitmapImage := TBitmapImage.Create(MainForm);
BackgroundBitmapImage.Left := 0;
BackgroundBitmapImage.Top := 50;
BackgroundBitmapImage.AutoSize := True;
BackgroundBitmapImage.Bitmap.LoadFromFile( ExpandConstant('{tmp}\{#BackgroundImage}') );
BackgroundBitmapImage.Parent := MainForm;
图片的确切尺寸都不能解决问题。
ExtractTemporaryFile(ExpandConstant( '{#BackgroundImage}' ));
BackgroundBitmapImage := TBitmapImage.Create(MainForm);
BackgroundBitmapImage.Left := 0;
BackgroundBitmapImage.Top := 50;
BackgroundBitmapImage.Width := 600;
BackgroundBitmapImage.Height := 500;
BackgroundBitmapImage.AutoSize := False;
BackgroundBitmapImage.Bitmap.LoadFromFile( ExpandConstant('{tmp}\{#BackgroundImage}') );
BackgroundBitmapImage.Parent := MainForm;
【问题讨论】:
标签: windows image installation inno-setup pascalscript