IMcDisplayEditPasteNew Method
|
|
A new image is created from data previously EditCopy/Cut to the
clipboard or from bitmap data on the clipboard.
Namespace:
MediaCy.IQL.Display.Viewer
Assembly:
MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
SyntaxFunction EditPasteNew (
Optional Name As String = "",
Optional Flags As mcImageCreateFlags = mcImageCreateFlags.mcicfDefault
) As McImage
Parameters
- Name (Optional)
- Type: SystemString
An optional name to be given to the image. If not given, then
the name will be derived from the name of the image on the clipboard. - Flags (Optional)
- Type: MediaCy.IQL.EnginemcImageCreateFlags
Image creation flags, as in the McImages.Add method. See
mcImageCreateFlags for the list of supported flags.
Return Value
Type:
McImage
RemarksThe pasted image data may have been previously placed there by a call
to the EditCopy or EditCut methods, or it may be a new image created from a
bitmap placed on the clipboard by some other application.
If multiple image clipboard formats are available, their precedence is
mcwcftMcImageAoi, mcwcftMcImageDisplayArea, mcwcftCF_DIB, mcwcftCF_BITMAP, and
then mcwcftCF_ENHMETAFILE.
Examples
Dim TempDisplay As McDisplay
Set TempDisplay = CreateOperator("McDisplay");
If Not TempDisplay.IsActionAvailable( mcwaMcImageToPasteNew) Then
MsgBox "There is no image on the clipboard"
Else
TempDisplay.EditPasteNew "PastedImage"
EndIf
Set TempDisplay = Nothing
See Also