Few days ago I posted a solution based on Alexander Golovlev's GPIMAGE GDI+ class showing how to send an image to the clipboard.
We agreed that although this function is not present originally on the "System.Drawing" namespace from .NET, it could represent a good addiction to the Gdiplus-X livrary for VFP. So, the function "ToClipboard()" was added to the Bitmap class.
From now on, I mean from Gdiplus-X Release 0.07 and forward, we can send any GDI+ compatible image to the clipboard using the new "ToClipboard()" function just added to the Bitmap class using the simple code below:
** The following code example demonstrates how to send an
** image to the clipboard
** Sample totally based on the method "ToClipboard" from GPIMAGE GDI+ class
** from Alexander Golovlev
DO LOCFILE("System.App")
LOCAL loBmp AS xfcBitmap
loBmp = _SCREEN.System.Drawing.Bitmap.New(GETPICT()) loBmp.ToClipboard()