简体   繁体   English

如何调整NSIS安装程序上左侧图像的大小?

[英]How resize the left image on the NSIS installer?

NSIS automaticaly resizes the image to 150x57 I think. 我认为NSIS会自动将图像调整为150x57。 But my image is 175x100 how I can prevent NSIS from deforming it ? 但是我的图像是175x100,如何防止NSIS变形? I'm using this define : 我正在使用这个定义:

!define MUI_HEADERIMAGE_BITMAP "myImage"

I found AddBrandingImage but i don't think it il what I'm looking for. 我找到了AddBrandingImage,但我认为这不是我想要的。 I will test anyway. 我还是会测试。

If you are using NSIS 3 you can try !define MUI_HEADERIMAGE_BITMAP_STRETCH AspectFitHeight . 如果您使用的是NSIS 3,则可以尝试!define MUI_HEADERIMAGE_BITMAP_STRETCH AspectFitHeight

If you want to use a larger image without resizing it then you must modify the UI (NSIS\\Contrib\\UIs\\Modern.exe) with Resource Hacker and apply it with ChangeUI . 如果要使用较大的图像而不调整其大小,则必须使用Resource Hacker修改UI(NSIS \\ Contrib \\ UIs \\ Modern.exe)并通过ChangeUI应用它。

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

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