ما هو XBM؟ شرح تنسيق X BitMap

XBM (X BitMap) هو تنسيق صورة أحادية اللون لنظام X Window يخزن صور البت 1-بت ككود مصدر C قابل للتجميع للأيقونات والمؤشرات.

أداة تحويل ملفات مجانية عبر الإنترنت. تعمل على Chrome وFirefox وSafari وEdge وOpera والمتصفحات الحديثة الأخرى على Windows وmacOS وLinux وAndroid وiOS. لا حاجة لتثبيت برامج أو تسجيل. تتم جميع التحويلات مباشرة في متصفحك، لذا لا تغادر ملفاتك جهازك. مجانية للاستخدام بدون حساب.

Image

ما هو XBM؟ شرح تنسيق X BitMap

تنسيق صورة X Window System أحادي اللون مخزن ككود مصدر C قابل للتجميع.

آخر تحديث:

Year1980s
TypeRaster (monochrome)
UsageX Window System icons

What is it?

XBM (X BitMap) is a monochrome image format used by the X Window System to store simple bitmaps such as icons and cursors. Its defining characteristic is that an XBM file is plain C source code rather than a conventional binary image file.

An XBM file consists of #define statements giving the width and height in pixels, followed by a static array of unsigned char values holding the 1-bit pixel data. Each byte encodes eight pixels, with the upper-left pixel in the low bit of the first byte. Because it is valid C, an XBM bitmap can be compiled directly into an application.

Technical Specifications

DeveloperX Window System (MIT / X Consortium)
File Extension.xbm
MIME Typeimage/x-xbitmap
Released1980s (with X Window System)
Type1-bit monochrome bitmap (C source)

Pros & Cons

Advantages

يجمع مباشرة إلى كود

Because an XBM file is C source, the bitmap can be #included and compiled straight into an application with no separate loader.

قابل للقراءة والتحرير

The plain-text array can be inspected and edited in any text editor, which is convenient for tiny icons.

هيكل بسيط جدًا

With just width/height defines and a byte array, XBM is trivial to generate and parse programmatically.

خفيف لرسومات صغيرة

For small monochrome icons and cursors, XBM is a compact and dependency-free way to embed images.

Disadvantages

أحادي اللون فقط

XBM stores only 1-bit black-and-white pixels, with no support for grayscale or color.

غير فعال للتخزين

Encoding each byte as ASCII C hexadecimal makes files far larger than the raw pixel data they represent.

تم استبداله إلى حد كبير

XBM was superseded by XPM for color, and is now used mainly for simple UI elements in lightweight window managers.

When to Use It

XBM is used for small monochrome graphics within the X Window System and similar contexts.

أيقونات ومؤشرات X Window

XBM was the original format for cursor and icon bitmaps in the X GUI environment.

صور زر واجهة المستخدم المدمجة

Lightweight window managers such as Openbox still use XBM to define simple title-bar buttons like minimize and maximize.

رسومات مدمجة

Developers embed small monochrome bitmaps directly into C programs by including XBM source files.

How to open a XBM file

XBM files, or X BitMap files, are primarily used for storing bitmap images in a format that is particularly suited for X Window System applications. Software for handling XBM files can be categorized into professional graphic design tools, free and open-source applications, web-based viewers, and built-in system utilities. Professional tools are ideal for users needing advanced editing capabilities, while free and open-source options are great for casual users or developers looking for cost-effective solutions.

When selecting software for XBM, important decision factors include the fidelity of the image handling, whether the user needs editing capabilities or just viewing, and the cost model of the software. Additionally, platform compatibility is crucial, as some tools may only be available on specific operating systems. Users may also consider export needs, as converting XBM to other formats could be more efficient depending on the intended use.

GIMP 2.10.34

Windows, macOS, LinuxFree (GPL)

GIMP is a powerful open-source image editor that supports XBM files for both viewing and editing. It offers high fidelity in handling XBM graphics, allowing users to manipulate pixel data directly.

الميزات الرئيسية
  • Advanced layer and mask editing
  • Customizable brushes and tools
  • Support for various image formats
  • Image scaling and transformation tools
  • Scripting support for automation
نقاط القوة
  • Comprehensive editing capabilities for XBM
  • Strong community support and plugins
  • Cross-platform availability
القيود
  • Steeper learning curve for beginners
  • Performance can lag on large files

يصدّر إلى: PNG, JPG, TIFF, BMP, GIF

الأفضل لـ: GIMP is ideal for users needing robust editing features for XBM files without the cost.

زيارة GIMP →

ImageMagick 7.1.0-15

Windows, macOS, LinuxFree (Apache License)

ImageMagick is a command-line tool that excels in converting and manipulating images, including XBM files. It is particularly useful for batch processing and automation of image tasks.

الميزات الرئيسية
  • Batch conversion of XBM files
  • Image resizing and cropping
  • Format conversion capabilities
  • Text and drawing capabilities
  • Image filtering and effects
نقاط القوة
  • Powerful batch processing capabilities
  • Extensive format support
  • Highly scriptable for automation
القيود
  • Command-line interface may intimidate users
  • Limited GUI options for casual users

يصدّر إلى: PNG, JPG, GIF, TIFF, PDF

الأفضل لـ: ImageMagick is best for users who need to automate and process XBM files in bulk.

زيارة ImageMagick →

XnView MP 1.0.0

Windows, macOS, LinuxFree / Paid

XnView MP is a versatile image viewer and converter that supports XBM files, allowing users to view and convert images easily. It provides a user-friendly interface with a range of features for managing image collections.

الميزات الرئيسية
  • Multi-format image viewing
  • Batch conversion and renaming
  • Image metadata editing
  • Slideshow and presentation options
  • Basic image editing tools
نقاط القوة
  • User-friendly interface for viewing XBM
  • Supports a wide range of formats
  • Efficient batch processing features
القيود
  • Limited advanced editing capabilities
  • Some features require paid version

يصدّر إلى: PNG, JPG, TIFF, BMP, GIF

الأفضل لـ: XnView MP is suitable for users looking for an easy-to-use viewer and converter for XBM files.

زيارة XnView MP →

Adobe Photoshop 2023

Windows, macOS$20.99/mo

Adobe Photoshop is a leading professional image editing software that can open and edit XBM files, providing extensive tools for detailed graphic design work. Its high fidelity and advanced features make it suitable for professional use.

الميزات الرئيسية
  • Full layer and mask editing
  • Advanced color management tools
  • Extensive brush and tool customization
  • Smart Objects and vector shapes
  • Support for 3D graphics and animation
نقاط القوة
  • Industry-standard editing capabilities
  • Robust support for various formats
  • Extensive resources and tutorials available
القيود
  • Subscription cost may be prohibitive
  • Complex interface for new users

يصدّر إلى: PNG, JPG, TIFF, PDF, GIF

الأفضل لـ: Adobe Photoshop is perfect for professionals needing comprehensive editing tools for XBM files.

زيارة Adobe Photoshop →

Convert XBM Files Free

Use our free online converter to convert XBM and other formats - no signup, no watermarks.

Try Image Converter Free

References

  1. X BitMap - Wikipedia
  2. X PixMap - Wikipedia