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

# TDBImage.DoCopyToClipboard

Implements the clipboard Copy (Ctrl+C) command.

## Declaration

Source position: dbctrls.pp line 1197

`protected procedure TDBImage.DoCopyToClipboard;`

## Description

DoCopyToClipboard is a procedure used to implement the clipboard Copy (Ctrl+C) command. DoCopyToClipboard assigns the Picture in the control to the Clipboard for the application.

For the Windows platform, the TBitmap format is expected in Picture. For all other platforms, the TPortableNetworkGraphic format is expected. DoCopyToClipboard calls the AddFormat method in Clipboard when needed. If Picture uses a Graphic format other than expected, it is written to a memory stream and loaded into the Clipboard using the newly registered graphic format.

## See also

TCustomImage.Picture |  | Contains the image displayed in the control.
TClipboard.AddFormat |  | Acquires ownership of the Clipboard and adds a format.
TClipboard |  | Represents the clipboard on platforms supported for the LCL.
TGraphic |  | Abstract base class used for images in supported image formats.
TBitmap |  | Implements a FCL-compatible reader/writer for a Bitmap image.
TPortableNetworkGraphic |  | Implements support for the PNG image format.