Show: Delphi C++
Display Preferences

Vcl.Graphics.TBitmap

From XE2 API Documentation
Jump to: navigation, search

Vcl.Graphics.TGraphicSystem.Classes.TInterfacedPersistentSystem.Classes.TPersistentSystem.TObject
TBitmap

Delphi

TBitmap = class(TGraphic)

C++

class PASCALIMPLEMENTATION TBitmap : public TGraphic

Contents

Properties

Type Visibility Source Unit Parent
class public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

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 Examples

Personal tools
Previous Versions
Translations