Palm/Garnet 操作系统图标格式?

发布于 2024-07-07 20:30:45 字数 46 浏览 4 评论 0原文

我用谷歌搜索了一下,没有看到任何信息。 应用程序使用什么格式和图标颜色深度?

I have googled around and not seen any info. What format and icon color depths are used for applications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心的憧憬 2024-07-14 20:30:45

Palm OS 图标格式是位图格式的变体。 Palm OS 支持一种称为位图族的概念,其中不同颜色深度和像素密度的多个位图捆绑在一起,并在运行时选择适当的位图。 图标只是作为应用程序的一部分存储在“tAIN”资源中的位图。 位图还可以使用 RLE 或 PackBits(原始 Mac 操作系统中使用的算法)进行压缩。

如果您使用 PilRC 等工具来编译位图,则应确保包含低密度和高密度位图。 下面是我在自己的一个程序中使用的示例图标定义:

ICON
BEGIN
BITMAP "LargeSXSW06Icon_1bpp_72ppi__22x22.bmp" BPP 1 DENSITY 72
BITMAP "LargeSXSW06Icon_1bpp_144ppi_44x44.bmp" BPP 1 DENSITY 144
BITMAP "LargeSXSWIcon_8bpp_108ppi_33x33.bmp"   BPP 8 COMPRESS TRANSPARENTINDEX 0 DENSITY 108
BITMAP "LargeSXSWIcon_8bpp_144ppi_44x44.bmp"   BPP 8 COMPRESS TRANSPARENTINDEX 0 DENSITY 144
END

SMALLICON
BEGIN
BITMAP "SmallIcon_1bpp_72ppi_15x9.bmp"       BPP 1 DENSITY 72
BITMAP "SmallIcon_8bpp_72ppi_15x9.bmp"       BPP 8 DENSITY 72
BITMAP "SmallSXSWIcon_8bpp_108ppi23x14.bmp"  BPP 8 DENSITY 108
BITMAP "SmallSXSWIcon_8bpp_144ppi_30x18.bmp" BPP 8 DENSITY 144
END

我定义了两个图标——标准大图标和在列表视图模式下的启动器中使用的小图标。 主图标的低密度和高密度尺寸为 22x22/44x44,小图标的尺寸为 15x9/30x18。 PilRC 将 BMP 文件作为输入,但它输出每个资源的 .bin 文件或包含所有指定资源的组合 PRC 格式文件。 PilRC 源代码 是位图实际二进制格式的最佳参考。

The Palm OS icon format is a variation of it's bitmap format. Palm OS supports a concept called bitmap families where multiple bitmaps of different color depths and pixel densities are bundled together, with the appropriate one chosen at runtime. An icon is just a bitmap stored in a 'tAIN' resource as part of the application. Bitmaps also can be compressed using either RLE or PackBits, an algorithm used in the original Mac OS.

If you're using a tool like PilRC to compile your bitmaps, you should be sure to include a low density and a high density bitmap. Here's a sample icon definition that I've used in one of my own programs:

ICON
BEGIN
BITMAP "LargeSXSW06Icon_1bpp_72ppi__22x22.bmp" BPP 1 DENSITY 72
BITMAP "LargeSXSW06Icon_1bpp_144ppi_44x44.bmp" BPP 1 DENSITY 144
BITMAP "LargeSXSWIcon_8bpp_108ppi_33x33.bmp"   BPP 8 COMPRESS TRANSPARENTINDEX 0 DENSITY 108
BITMAP "LargeSXSWIcon_8bpp_144ppi_44x44.bmp"   BPP 8 COMPRESS TRANSPARENTINDEX 0 DENSITY 144
END

SMALLICON
BEGIN
BITMAP "SmallIcon_1bpp_72ppi_15x9.bmp"       BPP 1 DENSITY 72
BITMAP "SmallIcon_8bpp_72ppi_15x9.bmp"       BPP 8 DENSITY 72
BITMAP "SmallSXSWIcon_8bpp_108ppi23x14.bmp"  BPP 8 DENSITY 108
BITMAP "SmallSXSWIcon_8bpp_144ppi_30x18.bmp" BPP 8 DENSITY 144
END

I define two icons -- the standard large icon and a small icon that's used in the launcher in list view mode. The sizes are 22x22/44x44 for low and high density for the main icon, and 15x9/30x18 for the small icon. PilRC takes BMP files as input, but it outputs either .bin files for each resource or a combined PRC-format file with all the resources specified. The PilRC source code is the best reference to the actual binary format of the bitmap.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文