Vcl.Graphics.TBitmap.ReleaseHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReleaseHandle: HBITMAP;

C++

HBITMAP __fastcall ReleaseHandle();

Properties

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

Description

Returns the handle to the bitmap so that the TBitmap object no longer knows about the handle.

Use ReleaseHandle to disassociate the bitmap from the bitmap handle. Use it when you need to give a bitmap handle to a routine or object that will assume ownership (or destroy) the bitmap handle.

See Also

Code Examples