Vcl.Graphics.TBitmap.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TBitmap();

Properties

Type Visibility Source Unit Parent
destructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TBitmap

Description

Disposes of the instance of the bitmap object.

Destroy is the destructor for a TBitmap object.

Do not call the destructor directly in an application. Instead, call Free. Free verifies that the bitmap object is not nil before it calls Destroy.

Destroy releases the internal bitmap image (TBitmapImage object) and frees the canvas before calling the inherited destructor.

See Also