Paste method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Paste (int iFlags);

Delphi Syntax

Paste (iFlags:Integer): Integer;

Overview

Refer to Copying and Creating Bitmaps.

Remarks

Pastes image data from the clipboard to a specified bitmap. The image on the clipboard must be a DIB or DDB raster image.

Before attempting to paste the data, you can test to see if the clipboard contains valid image data by calling this method with the iFlags parameter set to PASTE_ISREADY. If the method does not return 0, the data is valid. You can then paste the image data into the Main Control by calling this method with the iFlags parameter set to 0.

The bitmap will contain the same width, height, and bits per pixel as the image on the clipboard.

See Also

Topics

Raster Images: Exchanging Imgages with Other Objects

 

Raster Images: Using the Clipboard

 

Using Rulers in Annotation Objects