File Formats
  • Audio
  • Video
  • Images
  • 3D & CAD
  • Documents
  • Data
  • Code
  • System
Images
  • Raster
  • Vector
  • Camera raw
  • Layered projects
  • HDR & scientific
  • Icons
  • Retro
  1. Home
  2. Images
  3. Raster
  4. BMP
  5. PT
.BMP
  • Overview
  • Windows bitmap (BM)
    • File header
    • DIB header
    • Colour spaces
    • Colour table
    • Bit masks
    • Pixel data
    • Compression
  • OS/2 bitmap array (BA)
  • OS/2 icon (IC)
  • OS/2 colour icon (CI)
  • OS/2 pointer (PT)
  • OS/2 colour pointer (CP)

.PTR

OS/2 pointer (PT)

Introduction

The OS/2 pointer is a black and white mouse pointer stored as a BMP file with the type code PT. It is laid out exactly like a black and white OS/2 icon: one 1-bit bitmap twice the pointer’s height, holding an AND mask and an XOR mask. The two fields that a bitmap reserves give the hotspot, the pixel that marks where the pointer points.

Pointer files are usually named .ptr. A file with versions for several screens is a bitmap array whose entries are PT or colour pointer images.

Software

  • ArcaOS, the current OS/2, whose Icon Editor opens and saves them
  • Deark, which converts them to PNG (Windows, macOS, Linux)

Structure

The parts are those of a black and white icon, and the masks combine the same way: black, white, transparent or inverted. All numbers are little-endian.

  1. 0File header PT, size, hotspot and the offset of the pixels14 bytes
  2. 14DIB header width, double height, 1 bit per pixel12 to 64 bytes
  3. …Colour table two entries, black and white6 or 8 bytes
  4. …Masks 1-bit rows padded to 4 bytes, the AND mask and the XOR mask one above the othervaries
An OS/2 pointer

File header

OffsetSizeTypeNameDescription
02char[2]usTypeThe signature PT (50 54).
24u32cbSizeA size field; readers should not depend on it.
62i16xHotspotThe hotspot’s x position within the pointer.
82i16yHotspotThe hotspot’s y position within the pointer.
104u32offBitsThe offset from the start of the file to the mask bits.

Telling it apart

The file starts with PT (50 54), and its DIB header gives 1 bit per pixel with a height twice the width. Apart from the type code it is identical to an OS/2 icon. A colour pointer starts with CP and has a second file header.

© 2026 fileformats.org About Contact Made by Lewpen