[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TPixmap

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements support for the XPM (Pixmap) image format.

## Declaration

Source position: graphics.pp line 1488

`type TPixmap = class(TFPImageBitmap)`
`protected`
`class function GetReaderClass; override;` |  | Gets the class reference for a reader used during component streaming.
`class function GetWriterClass; override;` |  | Gets the class reference for a writer used during component streaming.
`class function GetSharedImageClass; override;` |  | Gets the class reference used to create the shared image in the class instance.
`public`
`function LazarusResourceTypeValid(); override;` |  | Determines if the specified resource type is valid for the image format.
`class function GetFileExtensions; override;` |  | Gets the file extensions supported for the image type.
`end;`

## Inheritance

`TPixmap` |  | Implements support for the XPM (Pixmap) image format.
`TFPImageBitmap` |  | Implements a Bitmap using the FPImage reader and writer from the FCL.
`TCustomBitmap` |  | TCustomBitmap - the base class for TBitmap.
`TRasterImage` |  | TRasterImage - base class for a number of graphic controls, including TCustomBitmap and TCustomIcon, which use a raster of dots to display graphic information.
`TGraphic` |  | Abstract base class used for images in supported image formats.
`TPersistent`
?
`TObject`

## Description

TPixMap is a TFPImageBitmap descendant, and is a wrapper used to handle the Pixmap ('XPM') image format.

Pixmap is an image file format used by the X Window System. It is intended primarily for creating icons, and supports transparent pixels. Derived from the earlier XBM syntax, it is a plain text file using the XPM2 format or a C programming language syntax, which can be included in a source code file.

TPixmap ensures that specified resources (image, file, or stream) are of the correct type and format.