Graphics.TBitmap

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Graphics.pas

TBitmap = class(TGraphic)


Unit: Graphics

Type: class

Inherited Class Members: Graphics.TBitmap Members

Class Properties: Graphics.TBitmap Properties

Class Methods: Graphics.TBitmap Methods

Class Constructors & Destructors: Graphics.TBitmap Constructors

C++ Information

From Graphics.hpp

TBitmap = class(TGraphic)


Unit: Graphics

Type: class

Inherited Class Members: Graphics.TBitmap Members

Class Properties: Graphics.TBitmap Properties

Class Methods: Graphics.TBitmap Methods

Class Constructors & Destructors: Graphics.TBitmap Constructors

Description

TBitmap is an encapsulation of a Windows bitmap (HBITMAP), including its palette (HPALETTE).


A bitmap is a powerful graphics object used to create, manipulate and store images in memory and as files on a disk.

TBitmap contains an internal image of the bitmap graphic and automatically manages realization of the palette when drawn.

To draw a bitmap on a canvas, call the Draw or StretchDraw methods of a TCanvas object, passing a TBitmap as a parameter.

Creating copies of a TBitmap is very fast since the handle is copied rather than the image. If the image is modified and the handle is shared by more than one TBitmap object, the image is copied before the modification is performed (that is, copy on write).

See Also

Code Samples


Personal tools
Translations
Newest Version