Pastes an image or layer from the clipboard.
Notes:
- All uncompressed DIB formats are handled (1, 4, 8, 15, 16, 24 and 32 bits)
- Color images of 4, 8, 15, 16, 24 or 32 bits are converted to 24 bit. Monochrome images (1 bit) will remain 1 bit
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public bool PasteFromClipboard( IEImage..::..IECopyPasteType dest, bool mergeAlpha, bool maintainAspectRatio, bool canStretch )
Public Function PasteFromClipboard ( _ dest As IEImage..::..IECopyPasteType, _ mergeAlpha As Boolean, _ maintainAspectRatio As Boolean, _ canStretch As Boolean _ ) As Boolean
public: bool PasteFromClipboard( IEImage..::..IECopyPasteType dest, bool mergeAlpha, bool maintainAspectRatio, bool canStretch )
Parameters
- dest
- IEImage..::..IECopyPasteType
Destination
- mergeAlpha
- Boolean
The alpha channel of the pasted bitmap will be merged with the background bitmap. It is only valid if image on the clipboard has been copied from IEImage
- maintainAspectRatio
- Boolean
If False and pasting to a selection, the inserted image will fill the entire selection. I.e. set to true to maintain the aspect ratio of the original bitmap
- canStretch
- Boolean
When pasting to a selection, CanStretch determines whether a source image smaller than the selection is enlarged or maintains its original size (has no effect if MaintainAspectRatio is False, i.e. image will always be stretched)