.XBM 文件扩展名

X BitMap Graphic

开发者 不适用
受欢迎程度
3.8  |  16 
 
🔍使用File Helper直接在您的网络浏览器中打开 .XBM 文件在线查看

什么是 XBM 文件?

An XBM file is a bitmap image used by the X Window System (X11), a GUI used to manage networked client-server computers. It contains C code that defines the image's appearance. Primarily, XBM files contain cursor and icon images.

更多信息

在 XnViewMP 中打开的 .xbm 文件截图
在 XnViewMP 中打开的 XBM 文件

Developers creating C programs for the X Window System can embed XBM, or X BitMap, images into those programs. Each XBM image consists of plain text C code that looks something like the following:

#define 2x2_width 16
#define 2x2_height 16
static char 2x2_bits[] = {
0xff, 0xff, 0xff, 0xff, 0x33, 0x33, 0x33, 0x33, 0xff, 
0xff, 0xff, 0xff, 0x33, 0x33, 0x33, 0x33, 0xff, 0xff, 
0xff, 0xff, 0x33, 0x33, 0x33, 0x33, 0xff, 0xff, 0xff, 
0xff, 0x33, 0x33, 0x33, 0x33};

When displayed in a program or opened in an image viewer, an XBM file appears as a monochrome image. The image's appearance is defined by its width and height parameters as well as its static array of pixel values.

注: The .XPM format eventually replaced the XBM format.

如何打开 XBM 文件

You can open an XBM file with many image viewers and editors, including XnViewMP (multiplatform), IrfanView (Windows), ImageMagick (multiplatform), and GIMP (multiplatform), and Tom's Editor (Web).

You can also open an XBM file with Microsoft Notepad (Windows), Apple TextEdit (Mac), or any other text editor, to view the C code the file contains.

如何转换 XBM 文件

You can use ImageMagick, GIMP, Tom's Editor, or XnViewMP to convert XBM images to other image formats. For example, XnViewMP can convert XBM files to the following formats (and many others):

  • .JPEG - JPEG Image
  • .GIF - Graphical Interchange Format
  • .PNG - Portable Network Graphic
  • .TIFF - Tagged Image
  • .BMP - Bitmap Image
  • .PCX - Paintbrush Bitmap Image
  • .TGA - Targa Graphic
  • .JP2 - JPEG 2000 Core Image
  • .JXR - JPEG XR Image
  • .WEBP - WebP Image

可打开 XBM 文件的程序

Windows
Mac
免费
免费
Linux
免费
免费
Web
Android

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 X BitMap Graphic 文件格式和 Mac, Windows, Linux, and Android 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们