简体   繁体   English

NSIS欢迎图像拉伸

[英]NSIS Welcome Image stretching

I have a bitmap 164x314 with my logo which is showing just fine.我有一个 bitmap 164x314 的徽标,显示效果很好。

When I use header to resize my installer当我使用 header 调整我的安装程序大小时

!include "nsResize.nsh"

and add width and height to it并为其添加宽度和高度

!define AddWidth 100u
!define AddHeight 75u

I also change dimensions of my bitmap to 164x436 and my logo is looking ugly and stretchy.我还将 bitmap 的尺寸更改为 164x436,我的徽标看起来很难看且有弹性。 Even if I use即使我使用

!define AddHeight 122

or要么

!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH

it don't do much.它没什么用。

What am I missing?我错过了什么?

Left — original, right — NSIS左 — 原始,右 — NSIS

Solved my problem with using 0px intro file使用 0px 介绍文件解决了我的问题

File "/oname=$PluginsDir\modern-wizard.bmp" "${}\Intro\intro0.bmp"
${NSD_SetImage} "$mui.WelcomePage.Image"    "$PLUGINSDIR\modern-wizard.bmp" "$mui.WelcomePage.Image.Bitmap"
${NSD_SetImage} "$mui.FinishPage.Image"     "$PLUGINSDIR\modern-wizard.bmp" "$mui.FinishPage.Image.Bitmap"

and setting image later:稍后设置图像:

${NSD_CreateBitmap} 0 0 164 436 ""
Pop $9
File "/oname=$pluginsdir\welcomeimg.bmp" "${}\Intro\intro96.bmp"
${NSD_SetImage} $9 "$pluginsdir\welcomeimg.bmp" $1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM