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

# TFPImageBitmap

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

Implements a Bitmap using the FPImage reader and writer from the FCL.

## Declaration

Source position: graphics.pp line 1439

`type TFPImageBitmap = class(TCustomBitmap)`
`protected`
`function GetMimeType; override;` |  | Gets the MIME type used for the image data in the image type.
`class function GetReaderClass; virtual; abstract;` |  | Gets the class reference used to create new instances of the FCL-compatible image reader.
`class function GetWriterClass; virtual; abstract;` |  | Gets the class reference used to create new instances of the FCL-compatible image writer.
`procedure InitializeReader(); virtual;` |  | Configures the reader class instance for the image type.
`procedure InitializeWriter(); virtual;` |  | Configures the writer class instance for the image type.
`procedure FinalizeReader(); virtual;` |  | Finalizes the FCL image reader when a read operation has been completed.
`procedure FinalizeWriter(); virtual;` |  | FinalizeWriter - ends the Image writing process.
`procedure ReadStream(); override;` |  | Read the image data from the specified Stream.
`procedure WriteStream(); override;` |  | Write the data to a stream.
`public`
`class function GetFileExtensions; override;` |  | Returns a list of the file extensions available for the image type.
`class function IsStreamFormatSupported(); override;` |  | Determines if the specified stream contains image data supported for the image type.
`class function IsFileExtensionSupported();` |  | Indicates whether the given file extension is supported for the image type.
`function LazarusResourceTypeValid(); override;` |  | Determines if the specified resource type is valid for the image format.
`end;`

## Inheritance

`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

Use this class to easily create a TCustomBitmap descendant using an FPImage reader and writer.