是否可以将 .png 图像用于 WiX 位图 [英] Is it possible to use .png images for WiX bitmaps

查看:21
本文介绍了是否可以将 .png 图像用于 WiX 位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 2 500K 位图在我的 WiX 对话框上显示图像.

I am using 2 500K bitmaps in to display images on my WiX dialogs.

它们大大增加了安装包的大小,更糟糕的是 - 看起来无法将它们打包为 .cab 文件的一部分,因为它们是 <binary>-es 在 WiX 术语中.

They dramatically increase the size of the installation package, and what is worse - it looks there's no way to package them as a part of a .cab file since they're <binary>-es in the WiX terms.

那么,我想,有没有办法将其他文件格式用于位图或 WiX 与 BMP 绑定?理想情况下,如果有一种使用 .png 格式的方法会更好,因为它带有一个松散的压缩选项.

So, I thught, is there any way to use other file formats for bitmaps or WiX is tethered with BMP? Ideally it would be greate if there's a way to use .png format since it comes with a looseless compression option.

推荐答案

位图控件指出图像应该是一个位图"——大概是一个 .BMP 文件——或者一个 JPEG.

The Windows Installer documentation for the Bitmap control states that the image should be a "bitmap" -- presumably a .BMP file -- or a JPEG.

在使用 WiX 时,您必须记住它基于 Windows Installer.这意味着 WiX 中的任何限制通常是由底层 Windows Installer 实现中的限制引起的.

You have to remember, when working with WiX, that it's based on Windows Installer. This means that any limitations in WiX are often caused by limitations in the underlying Windows Installer implementation.

.BMP 文件可以进行 RLE 压缩.我不知道他们是否支持任何其他压缩算法.

.BMP files can be RLE-compressed. I don't know if they support any other compression algorithms.

这篇关于是否可以将 .png 图像用于 WiX 位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆